catching invalid import statements

Stephan Kulow coolo at kde.org
Mon Jul 19 21:50:40 CEST 2004


Hi!

When I read the layout-tests's expected.txt Safari shares the bug of konqueror
in displaying http://www.w3.org/Style/CSS/Test/CSS1/current/test11.htm

The last sentense saying "This paragraph should be green." is displayed in 
black as the css parser doesn't recover from the IMPORT_SYM. The css
specs say that the user agent has to ignore import rules appearing somewhere
else than at the beginning.

The attached patch tries to catch that. I had to increase the number of 
expected conflicts, but for this case, the reduce preference is the right 
choice.

Greetings, Stephan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parser.diff
Type: text/x-diff
Size: 1021 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/khtml-devel/attachments/20040719/f8a8be24/parser.bin


More information about the Khtml-devel mailing list