You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Paul Field (JIRA)" <ta...@jakarta.apache.org> on 2006/05/23 16:13:34 UTC
[jira] Created: (TAPESTRY-961) Large XTile responses not parsed
correctly (FireFox 1.5)
Large XTile responses not parsed correctly (FireFox 1.5)
--------------------------------------------------------
Key: TAPESTRY-961
URL: http://issues.apache.org/jira/browse/TAPESTRY-961
Project: Tapestry
Type: Bug
Components: Contrib
Versions: 4.0.1
Environment: FireFox 1.5 browser
Reporter: Paul Field
I'm returning a large string (approx 7k) from a listener called by the XTile component.
XTile's extractData() function parses the response like this (relevant code chopped out):
if (xml) dataList = xml.getElementsByTagName('sp');
for (i = 0; i < dataLen; i++) {
var child = dataList[i].firstChild; // THIS LINE IS THE PROBLEM....
if (child)
data[i] = child.data;
}
The parsing code assumes that the returned text will be a single child node of the 'sp' element. Unfortunately, the FireFox parser creates multiple text nodes (by default a text node is max 4k in size).
See here for more info:
http://www.quirksmode.org/bugreports/archives/2004/12/text_node_maxim.html
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-961) Large XTile responses not parsed
correctly (FireFox 1.5)
Posted by "Bastian Voigt (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bastian Voigt updated TAPESTRY-961:
-----------------------------------
Affects Version/s: 4.1.1
4.1.2
> Large XTile responses not parsed correctly (FireFox 1.5)
> --------------------------------------------------------
>
> Key: TAPESTRY-961
> URL: https://issues.apache.org/jira/browse/TAPESTRY-961
> Project: Tapestry
> Issue Type: Bug
> Components: Contrib
> Affects Versions: 4.0.2, 4.1.1, 4.1.2
> Environment: FireFox 1.5 browser, Firefox 2.0 browser
> Reporter: Paul Field
> Assignee: Jesse Kuhnert
> Attachments: XTile.script
>
>
> I'm returning a large string (approx 7k) from a listener called by the XTile component.
> XTile's extractData() function parses the response like this (relevant code chopped out):
> if (xml) dataList = xml.getElementsByTagName('sp');
> for (i = 0; i < dataLen; i++) {
> var child = dataList[i].firstChild; // THIS LINE IS THE PROBLEM....
> if (child)
> data[i] = child.data;
>
> }
> The parsing code assumes that the returned text will be a single child node of the 'sp' element. Unfortunately, the FireFox parser creates multiple text nodes (by default a text node is max 4k in size).
> See here for more info:
> http://www.quirksmode.org/bugreports/archives/2004/12/text_node_maxim.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-961) Large XTile responses not parsed
correctly (FireFox 1.5)
Posted by "Bastian Voigt (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bastian Voigt updated TAPESTRY-961:
-----------------------------------
Environment: FireFox 1.5 browser, Firefox 2.0 browser (was: FireFox 1.5 browser)
Affects Version/s: (was: 4.0.1)
4.0.2
> Large XTile responses not parsed correctly (FireFox 1.5)
> --------------------------------------------------------
>
> Key: TAPESTRY-961
> URL: https://issues.apache.org/jira/browse/TAPESTRY-961
> Project: Tapestry
> Issue Type: Bug
> Components: Contrib
> Affects Versions: 4.0.2
> Environment: FireFox 1.5 browser, Firefox 2.0 browser
> Reporter: Paul Field
> Assigned To: Jesse Kuhnert
> Attachments: XTile.script
>
>
> I'm returning a large string (approx 7k) from a listener called by the XTile component.
> XTile's extractData() function parses the response like this (relevant code chopped out):
> if (xml) dataList = xml.getElementsByTagName('sp');
> for (i = 0; i < dataLen; i++) {
> var child = dataList[i].firstChild; // THIS LINE IS THE PROBLEM....
> if (child)
> data[i] = child.data;
>
> }
> The parsing code assumes that the returned text will be a single child node of the 'sp' element. Unfortunately, the FireFox parser creates multiple text nodes (by default a text node is max 4k in size).
> See here for more info:
> http://www.quirksmode.org/bugreports/archives/2004/12/text_node_maxim.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-961) Large XTile responses not parsed
correctly (FireFox 1.5)
Posted by "Bastian Voigt (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bastian Voigt updated TAPESTRY-961:
-----------------------------------
Attachment: XTile.script
Fix bug 961 by iterating over all the text nodes instead of using only the first one.
> Large XTile responses not parsed correctly (FireFox 1.5)
> --------------------------------------------------------
>
> Key: TAPESTRY-961
> URL: https://issues.apache.org/jira/browse/TAPESTRY-961
> Project: Tapestry
> Issue Type: Bug
> Components: Contrib
> Affects Versions: 4.0.2
> Environment: FireFox 1.5 browser
> Reporter: Paul Field
> Assigned To: Jesse Kuhnert
> Attachments: XTile.script
>
>
> I'm returning a large string (approx 7k) from a listener called by the XTile component.
> XTile's extractData() function parses the response like this (relevant code chopped out):
> if (xml) dataList = xml.getElementsByTagName('sp');
> for (i = 0; i < dataLen; i++) {
> var child = dataList[i].firstChild; // THIS LINE IS THE PROBLEM....
> if (child)
> data[i] = child.data;
>
> }
> The parsing code assumes that the returned text will be a single child node of the 'sp' element. Unfortunately, the FireFox parser creates multiple text nodes (by default a text node is max 4k in size).
> See here for more info:
> http://www.quirksmode.org/bugreports/archives/2004/12/text_node_maxim.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Resolved: (TAPESTRY-961) Large XTile responses not parsed
correctly (FireFox 1.5)
Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-961?page=all ]
Jesse Kuhnert resolved TAPESTRY-961.
------------------------------------
Resolution: Won't Fix
Assignee: Jesse Kuhnert
The new client side XHR api doesn't have this problem. Use that one :)
> Large XTile responses not parsed correctly (FireFox 1.5)
> --------------------------------------------------------
>
> Key: TAPESTRY-961
> URL: http://issues.apache.org/jira/browse/TAPESTRY-961
> Project: Tapestry
> Issue Type: Bug
> Components: Contrib
> Affects Versions: 4.0.1
> Environment: FireFox 1.5 browser
> Reporter: Paul Field
> Assigned To: Jesse Kuhnert
>
> I'm returning a large string (approx 7k) from a listener called by the XTile component.
> XTile's extractData() function parses the response like this (relevant code chopped out):
> if (xml) dataList = xml.getElementsByTagName('sp');
> for (i = 0; i < dataLen; i++) {
> var child = dataList[i].firstChild; // THIS LINE IS THE PROBLEM....
> if (child)
> data[i] = child.data;
>
> }
> The parsing code assumes that the returned text will be a single child node of the 'sp' element. Unfortunately, the FireFox parser creates multiple text nodes (by default a text node is max 4k in size).
> See here for more info:
> http://www.quirksmode.org/bugreports/archives/2004/12/text_node_maxim.html
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-961) Large XTile responses not parsed
correctly (FireFox 1.5)
Posted by "Bastian Voigt (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509907 ]
Bastian Voigt commented on TAPESTRY-961:
----------------------------------------
Can someone please please please commit my fix to the repository??? It is so annoying having to add the fix manually to each new release of tapestry
Please! Come on, you know that the new XHR api is not yet good enough to replace XTile in all use cases!
> Large XTile responses not parsed correctly (FireFox 1.5)
> --------------------------------------------------------
>
> Key: TAPESTRY-961
> URL: https://issues.apache.org/jira/browse/TAPESTRY-961
> Project: Tapestry
> Issue Type: Bug
> Components: Contrib
> Affects Versions: 4.0.2, 4.1.1, 4.1.2
> Environment: FireFox 1.5 browser, Firefox 2.0 browser
> Reporter: Paul Field
> Assignee: Jesse Kuhnert
> Attachments: XTile.script
>
>
> I'm returning a large string (approx 7k) from a listener called by the XTile component.
> XTile's extractData() function parses the response like this (relevant code chopped out):
> if (xml) dataList = xml.getElementsByTagName('sp');
> for (i = 0; i < dataLen; i++) {
> var child = dataList[i].firstChild; // THIS LINE IS THE PROBLEM....
> if (child)
> data[i] = child.data;
>
> }
> The parsing code assumes that the returned text will be a single child node of the 'sp' element. Unfortunately, the FireFox parser creates multiple text nodes (by default a text node is max 4k in size).
> See here for more info:
> http://www.quirksmode.org/bugreports/archives/2004/12/text_node_maxim.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org