Wicket.replaceOuterHtmlSafari broken in safari 5.1
--------------------------------------------------
Key: WICKET-3943
URL: https://issues.apache.org/jira/browse/WICKET-3943
Project: Wicket
Issue Type: Bug
Components: wicket-core
Affects Versions: 1.4.17
Environment: OS X 10.7
Safari 521
Reporter: Wim Vandenhaute
Page containing:
- a form with an input field and 2 ajax submit buttons.
- 2 div's with panels behind them becoming visible according which submit
button.
Form is successfully posted, correct panel initialization is done but page
fails to load due to an error in wicket-ajax.js line 217
...
while (element != next) {
try {
Wicket.Head.addJavascripts(element);
} catch (ignore) {
}
element = element.nextSibling; <== element is null eventually.
}
The loop fails to find the 'next' element.
The 'next' element is a text node and on debugging the javascript code I
noticed that the 'next' element is missing alot of properties compared to the
element that it should match against in the while loop ( baseURI,
parentElement, parentNode, previousSibling, ... )
Kind regards,
Wim.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira