Alternate xml-stylesheets with no title are loaded, in violation of the CSSOM draft
authortomz@codeaurora.org <tomz@codeaurora.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Mar 2012 23:00:15 +0000 (23:00 +0000)
committertomz@codeaurora.org <tomz@codeaurora.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Mar 2012 23:00:15 +0000 (23:00 +0000)
commitdc808dc8fb6b79da73f32c8be968fb14da60d66b
tree6bf3f5dbd9d5964e5834e4dc86740dc39c7015e3
parent691ac79f4e220e5441c16d26696faca8424c3568
Alternate xml-stylesheets with no title are loaded, in violation of the CSSOM draft
https://bugs.webkit.org/show_bug.cgi?id=77549

Patch by Dave Tharp <dtharp@codeaurora.org> on 2012-03-13
Reviewed by David Hyatt.

Source/WebCore:

Amended code to ignore alternate stylesheets that do not have a title attribute.

Test: fast/css/xml-stylesheet-alternate-no-title.xhtml

* dom/ProcessingInstruction.cpp:
(WebCore::ProcessingInstruction::checkStyleSheet):

LayoutTests:

Added new text test, modified existing test: added title attribute to alternate stylesheet.

* fast/css/xml-stylesheet-alternate-no-title-expected.txt: Added.
* fast/css/xml-stylesheet-alternate-no-title.xhtml: Added.
* fast/css/xml-stylesheet-alternate-processing.xhtml:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@110632 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/xml-stylesheet-alternate-no-title-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/xml-stylesheet-alternate-no-title.xhtml [new file with mode: 0644]
LayoutTests/fast/css/xml-stylesheet-alternate-processing.xhtml
Source/WebCore/ChangeLog
Source/WebCore/dom/ProcessingInstruction.cpp