WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
86358
Use of #160 in input causes XSLT to fail in text/html page
https://bugs.webkit.org/show_bug.cgi?id=86358
Summary
Use of #160 in input causes XSLT to fail in text/html page
David Carlisle
Reported
2012-05-14 04:39:01 PDT
Created
attachment 141691
[details]
test file for running xslt on an element containing #160 Using XSLTProcessor to process an html element that contains the numeric reference "& # 1 6 0 ;" causes the XSLT processor to return null rather than a node. I suspect (but don't really have the tools to confirm) that the XSLT engine is being passed a serialisation using " & n b s p ;" which is then failing to parse as XML as the entity is not defined in that context. To reproduce, load attached html page and click on "run xslt" button. If XSLT runs, then the text of the following paragraph changes to "Good". If it does not run then it changes to "Bad". Results with different browsers Bad: Safari 5.1.7 Bad: Webkit Nightly WebKit-
r116595
Bad: Chrome 20.0.1132.3 dev-m Good: Opera 11.62 Good: Firefox Nightly 15.0a1 (2012-05-11) IE: doesn't support XSLTProcessor
Attachments
test file for running xslt on an element containing #160
(809 bytes, text/html)
2012-05-14 04:39 PDT
,
David Carlisle
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2022-06-03 02:19:14 PDT
This is still reproducible in Safari 15.5 and Chrome Canary 104, both report back "Bad" while Firefox shows "Good" upon clicking "run xslt" button. Thanks!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug