This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25141 - Element serialization is not right for parent->child elements in the same namespace
Summary: Element serialization is not right for parent->child elements in the same nam...
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM Parsing and Serialization (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Travis Leithead [MSFT]
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-24 17:46 UTC by Travis Leithead [MSFT]
Modified: 2014-03-28 21:18 UTC (History)
2 users (show)

See Also:


Attachments

Description Travis Leithead [MSFT] 2014-03-24 17:46:30 UTC
Specifically, step 11.2 in the Element serialization is too naïve.

There are cases where default namespace decls can cause the prefix of child to be dropped.

There are cases where the prefix definition is necessary to keep.
Comment 1 Travis Leithead [MSFT] 2014-03-24 22:49:52 UTC
Cases of same-namespace parent/child relationships:

Parent (default ns) --> Child (no prefix) 
> No prefix
Parent (default ns) --> Child (prefix + attr mapping prefix->different ns)
> Child prefix dropped
Parent (default ns) --> Child (prefix + attr mapping prefix->same ns)
> Child prefix kept
Parent (prefixed ns) --> Child (no prefix)
> Prefix added to child
Parent (prefixed ns) --> Child (prefix + attr mapping prefix->different ns)
> Prefix changed to parent's
Parent (prefixed ns) --> Child (prefix + attr mapping prefix->same ns)
> No change (child prefix used)
Comment 2 Travis Leithead [MSFT] 2014-03-27 02:12:47 UTC
Fixed in most recent update
Comment 3 Travis Leithead [MSFT] 2014-03-28 21:18:35 UTC
Note, this was changelist:
https://dvcs.w3.org/hg/innerhtml/rev/f9b5a818ef99