RESOLVED FIXED 34235
User Stylesheets do not get parsed using the correct compatibility mode in a Document
https://bugs.webkit.org/show_bug.cgi?id=34235
Summary User Stylesheets do not get parsed using the correct compatibility mode in a ...
Dave Hyatt
Reported 2010-01-27 17:12:54 PST
User stylesheets are always parsing in quirks mode, which means mixed case identifiers fail to match if a Document is really in strict mode.
Attachments
Patch (21.20 KB, patch)
2010-01-27 17:13 PST, Dave Hyatt
darin: review+
Dave Hyatt
Comment 1 2010-01-27 17:13:51 PST
Darin Adler
Comment 2 2010-01-27 17:24:46 PST
Comment on attachment 47579 [details] Patch > + documentStyle->setHtmlHacks(true); // enable html specific rendering tricks If I was moving this code, I would have changed it into a sentence comment and capitalized HTML. > - visuallyOrdered = false; > + m_visuallyOrdered = false; Since you have to touch this line anyway, I suggest using constructor syntax instead of an assignment statement for it. > + if (Settings* docSettings = settings()) In other places we do "this->settings()" so we can name the local variable settings too. But you just pointed out to me this is another case of moved code. > + bool visuallyOrdered() const { return m_visuallyOrdered; } We try to name boolean member functions so they finish a sentence "document <xxx>" so we would normally call this isVisuallyOrdered or hasVisuallyOrderedEncoding or whatever. Same for RenderStyle, etc. Not saying you need to change this now. The code looks good. You pointed out the regression test does not work. review+ assuming you make a new version of the test that does work.
Alexey Proskuryakov
Comment 3 2010-01-29 17:22:53 PST
This was committed in <http://trac.webkit.org/changeset/54005>. I don't see anything in above comments indicating that this bug needs to stay open.
Note You need to log in before you can comment on or make changes to this bug.