Status: New
Owner: ----

New issue 257 by [email protected]: Entities not working correctly in  
XHTML (mac-only)
http://code.google.com/p/v8/issues/detail?id=257

The following xhtml file does not behave properly in Chromium's TestShell
on Mac. It doesn't seem WebCore-related, so I'm filing it here.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
   <title/>
</head>
<body>

<script>
var b = "&rarr;";
alert(b);
alert(b.length);
</script>

</body>
</html>

Its output is two alerts, one with an empty alert (should be the 'right
arrow' symbol) and the next with a length of 0. This works correctly in
Safari and Firefox, as well as Chromium on Win and Linux. It appears to be
mac-only.

If you add a form field in the body and set its value to "&rarr;" it has
the correct value and length if you fetch them from Javascript. It's the
naked entity that seems to have problems. Finally, core entities such as
&lt; and &gt; work fine, probably because they're a special case within  
libxml.

This is a reduction of the WebKit.org layout test
LayoutTests/fast/parser/entities-in-attributes.xhtml if you want to play
with it in that setting. Let me know if you have any other questions.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to