mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-10 02:28:22 +02:00
fcl-css: fixed resolving function
This commit is contained in:
parent
d0c33bfa5d
commit
a0a17d5f07
@ -1640,11 +1640,17 @@ end;
|
||||
procedure TCSSBaseResolver.ReadWordID(var aComp: TCSSResCompValue);
|
||||
var
|
||||
Identifier: TCSSString;
|
||||
p: PCSSChar;
|
||||
begin
|
||||
case aComp.Kind of
|
||||
rvkFunctionUnknown:
|
||||
begin
|
||||
SetString(Identifier,aComp.StartP,aComp.EndP-aComp.StartP);
|
||||
p:=aComp.StartP;
|
||||
if not (p^ in AlIden) then exit;
|
||||
repeat
|
||||
inc(p);
|
||||
until not (p^ in AlNumIden);
|
||||
SetString(Identifier,aComp.StartP,p-aComp.StartP);
|
||||
aComp.FunctionID:=CSSRegistry.IndexOfAttrFunction(Identifier);
|
||||
if aComp.FunctionID>CSSIDNone then
|
||||
aComp.Kind:=rvkFunction;
|
||||
|
Loading…
Reference in New Issue
Block a user