Skip to content

Commit

Permalink
Keep all properties when cloning fixes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Jul 14, 2022
1 parent 7ab9773 commit 8f3d6f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AngleSharp.Xml/Dom/Internal/XmlElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public override IElement ParseSubtree(String html)
/// <inheritdoc />
public override Node Clone(Document owner, Boolean deep)
{
var node = new XmlElement(owner, LocalName, Prefix);
var node = new XmlElement(owner, LocalName, Prefix, NamespaceUri, Flags);
CloneElement(node, owner, deep);
node.IdAttribute = IdAttribute;
return node;
Expand Down

0 comments on commit 8f3d6f5

Please sign in to comment.