WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 5381
Bug 34678
No support for JS heredoc strings
https://bugs.webkit.org/show_bug.cgi?id=34678
Summary
No support for JS heredoc strings
Andy G
Reported
2010-02-06 03:13:21 PST
I haven't found support for multiline JavaScript "raw" heredoc-style strings in any browser that is using WebKit. The supplied URL shows this mentioned JavaScript multiline string code that I have trouble finding a real name for, as it's hardly ever documented. But this heredoc-like string in JavaScript works in the Gecko engine, where it gives an alert. If you visit the supplied URL in any WebKit browser, no alert is shown and instead the engine reports "Parse error". Again, steps to reproduce: Visit supplied URL, note that there's no alert window, note that there's a parse error. Does this in WebKit nightly build, but also Safari (on any OS) and Chrome. If you visit the page in Firefox or other Gecko browser, there's an alert and it works fine.
Attachments
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2010-02-06 19:44:28 PST
That’s not a “heredoc string”, but an XML literal from E4X (ECMAScript for XML). *** This bug has been marked as a duplicate of
bug 5381
***
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