@@ -416,7 +416,6 @@ function _aoIncludeWord(const Item:TAttrSelectorItem; E:THtmlElement):Boolean;
416
416
function _aoBeginWord (const Item:TAttrSelectorItem; E:THtmlElement):Boolean;
417
417
var
418
418
S:TStringDynArray;
419
- I:Integer;
420
419
begin
421
420
Result := false;
422
421
if not E.FAttributes.ContainsKey(Item.Key) then
@@ -567,7 +566,6 @@ function CreateCommentElement(AOwner:THtmlElement; AText:string; ALine, ACol:Int
567
566
568
567
function CreateTagElement (AOwner:THtmlElement; AText:string; ALine, ACol:Integer):THtmlElement;
569
568
var
570
- Strs:TStringDynArray;
571
569
I:Integer;
572
570
Attrs:TAttributeDynArray;
573
571
begin
@@ -710,7 +708,6 @@ procedure _ParserHTML(const Source:string; AElementList:THtmlElementList);
710
708
PreIsblique:Boolean;
711
709
begin
712
710
oldIndex := sc.CharIndex;
713
- stringChar := #0 ;
714
711
sc.SkipBlank();
715
712
if sc.subStr(4 ) = ' <!--' then
716
713
begin
@@ -812,7 +809,6 @@ procedure _ParserHTML(const Source:string; AElementList:THtmlElementList);
812
809
sc.setCode(Source);
813
810
while sc.CharIndex <= high(sc.SourceCode) do
814
811
begin
815
- ElementType := EtUnknow;
816
812
OldCodeIndex := sc.CharIndex;
817
813
BeginLineNum := sc.LineNum;
818
814
BeginColNum := sc.ColNum;
@@ -980,7 +976,6 @@ function BuildTree(ElementList:THtmlElementList):THtmlElement;
980
976
E:THtmlElement;
981
977
T:THtmlElement;
982
978
FoundIndex:Integer;
983
- TagProperty:WORD;
984
979
begin
985
980
Result := THtmlElement.Create(nil , ' ' , 0 , 0 );
986
981
Result.FTagName := ' #DOCUMENT' ;
@@ -990,7 +985,7 @@ function BuildTree(ElementList:THtmlElementList):THtmlElement;
990
985
while I < ElementList.Count do
991
986
begin
992
987
E := ElementList[I] as THtmlElement;
993
- TagProperty := GetTagProperty(E.FTagName);
988
+ // TagProperty := GetTagProperty(E.FTagName);
994
989
// Empty node, look down, if the next node with Tag is not its closed node, then automatically close
995
990
FoundIndex := -1 ;
996
991
if E.FIsCloseTag then
@@ -1245,7 +1240,7 @@ function ConvertWhiteSpace(S:string):string;
1245
1240
1246
1241
function GetTagProperty (const TagName:string):WORD;
1247
1242
var
1248
- Key, S :string;
1243
+ Key:string;
1249
1244
begin
1250
1245
Result := 0 ;
1251
1246
Key := UpperCase(TagName);
@@ -1426,7 +1421,6 @@ function ParserCSSSelector(const Value:string):TCSSSelectorItemGroup;
1426
1421
1427
1422
1428
1423
var
1429
- Tag:string;
1430
1424
pitems:PCSSSelectorItems;
1431
1425
pItem:PCSSSelectorItem;
1432
1426
begin
0 commit comments