h5o / h5o-js

HTML5 outliner (JavaScript)
MIT License
115 stars 15 forks source link

Add a class to the inserted div to allow for easier styling #12

Closed dominykas closed 9 years ago

dominykas commented 10 years ago

From Kevin.Da...@gmail.com on October 26, 2011 19:15:38

It would be nice if the top-level div that is inserted had a class name (or ID) on it so that it could be accessed by CSS selectors more easily.

Original issue: http://code.google.com/p/h5o/issues/detail?id=12

dominykas commented 10 years ago

From dymonaz on October 26, 2011 14:07:11

Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-Low

dominykas commented 9 years ago

Not really sure what is mean by top level div - only the bookmarklet wraps the result in a div, but that is not mean to be style-able by the page being outlined. The non-bookmarklet version returns HTML with an ol as it's root - it is outside of the scope of the outliner, to add the classes to that - there are plenty of alternative hooks and all HTML5 capable browsers support CSS2 direct descendant selector (>), so nothing should be an issue for styling.

Closing as "won't fix".