Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Only set title on SVG documents
https://bugs.webkit.org/show_bug.cgi?id=133068 Patch by Prashant Hiremath <hiremathprashants@gmail.com> on 2014-05-20 Reviewed by Dirk Schulze. Source/WebCore: Test: svg/custom/html_document_set_title.html * svg/SVGTitleElement.cpp: (WebCore::SVGTitleElement::insertedInto): (WebCore::SVGTitleElement::removedFrom): (WebCore::SVGTitleElement::childrenChanged): LayoutTests: * svg/custom/html_document_set_title-expected.txt: Added. * svg/custom/html_document_set_title.html: Added. Canonical link: https://commits.webkit.org/151145@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@169118 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
63c7e9c
commit 157146d2b1af8f1dcb4d03d566ef18a408b7bb8a
Showing
5 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
PASS document.title is "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<html> | ||
<head> | ||
<script src="../../resources/js-test.js"></script> | ||
<script> | ||
function runTest() | ||
{ | ||
shouldBe('document.title', '""'); | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
<svg> | ||
<title>Should not be set on HTML Document</title> | ||
</svg> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters