Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / xsl / nbsp-in-stylesheet.html
blob924a7e6b42aa4abff3c71a570fbe1b531f0135b4
1 <body>
2 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=19215">bug 19215</a>:
3 XSLT transformToDocument fails when stylesheet contains &amp;#160;</p>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 try {
9 var XML = '<?xml version="1.0" encoding="utf-8" ?>'+
10 '<libraries xmlns:xhtml="http://www.w3.org/1999/xhtml">'+
11 '</libraries>';
13 var XSL = '<?xml version="1.0" encoding="UTF-8" ?>'+
14 '<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"'+
15 ' xmlns="http://www.w3.org/1999/xhtml"'+
16 ' version="1.0">'+
17 ' <xsl:template match="/">'+
18 ' <html xmlns="http://www.w3.org/1999/xhtml" lang="en"'+
19 ' xml:lang="en">'+
20 ' <head>'+
21 ' <title>'+
22 ' </title>'+
23 ' </head>'+
24 ' <body foo="&#160;">'+
25 '&#160;'+
26 ' </body>'+
27 ' </html>'+
28 ' </xsl:template>'+
29 '</xsl:stylesheet>';
31 var parser = new DOMParser();
32 var d = parser.parseFromString(XML, "text/xml");
33 var parser = new DOMParser();
34 var xsl = parser.parseFromString(XSL, "text/xml");
36 var xsltproc = new XSLTProcessor();
37 xsltproc.importStylesheet(xsl);
38 var result = xsltproc.transformToDocument(d);
40 document.write(result ? "SUCCESS" : "FAILURE");
41 } catch (ex) {
42 document.write("Exception: " + ex);
44 </script>
45 </body>