Hacker News new | ask | show | jobs
by thro1 861 days ago
> but it was a bad design decision to store long blocks of HTML inside XML attributes instead of XML elements.

not at all - it's that what allows the simplest structure for nesting of outline elements.

An <outline> is an XML element, possibly containing one or more attributes, and containing any number of <outline> sub-elements.

1 comments

XML elements can contain both text and child elements. Character data didn't have to be stored in an attribute to allow outline nesting.

<?xml version="1.0" encoding="UTF-8"?>

<node>

    <node> 

      <![CDATA[ Hello I am text ]]>

      <node> ... </node>

      <node> ... </node>

    </node>
</node>
It's about outliners. You move just one thing.
Child elements of character data can be moved around too.