mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 06:52:25 +00:00
Fix for #314163 "E4X XML object constructed from an XML Beans XmlObject is not consistent with a literal (inline) E4X XML object"
This commit is contained in:
parent
d02505e57c
commit
f1e19754a9
@ -237,6 +237,10 @@ class XML extends XMLObjectImpl
|
||||
{
|
||||
XScriptAnnotation anno;
|
||||
XmlCursor curs = xo.newCursor();
|
||||
if (curs.currentTokenType().isStartdoc())
|
||||
{
|
||||
curs.toFirstContentToken();
|
||||
}
|
||||
try {
|
||||
anno = new XScriptAnnotation(curs);
|
||||
curs.setBookmark(anno);
|
||||
@ -710,7 +714,11 @@ todo need to handle namespace prefix not found in XML look for namespace type in
|
||||
{
|
||||
copyCurs = xo.newCursor();
|
||||
copyCurs.toFirstContentToken();
|
||||
|
||||
if (cursToCopy.currentTokenType() == XmlCursor.TokenType.STARTDOC)
|
||||
{
|
||||
cursToCopy.toNextToken();
|
||||
}
|
||||
|
||||
cursToCopy.copyXml(copyCurs);
|
||||
if (!cursToCopy.toNextSibling()) // If element skip element.
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user