Modified AppendChild() to recognize style element and send it to layout task via AddStylesheet after parsing it.