Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the content of a section #17

Open
dominykas opened this issue Jun 1, 2014 · 3 comments
Open

Get the content of a section #17

dominykas opened this issue Jun 1, 2014 · 3 comments

Comments

@dominykas
Copy link
Member

From tae...@gmail.com on November 19, 2012 13:35:54

What steps will reproduce the problem? 1. HTML5Outline(document.body)
2. Inspect the returned object What is the expected output? What do you see instead? Currently you only get the heading of a section.
It would be nice to be able to retrieve the content of a section (what is between this heading and the next one). What version of the product are you using? On what operating system? 0.5.0.62 with Firefox 16.0.2

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

@dominykas
Copy link
Member Author

From tae...@gmail.com on November 19, 2012 03:47:45

Note that you can already do something similar with jQuery :
$(outline.sections[0].sections[1].heading).nextUntil(outline.sections[0].sections[2].heading)

@dominykas
Copy link
Member Author

Note: this is essentially what the spec means by "Associate current outline target with current section."

What I haven't figured out yet, is how to actually deal with this, as I do not want to tack on the properties on top of existing elements, plus the outline would need to be updated as the DOM gets updated (meaning elements would need to be added/removed to/from the sections/outlines, etc)

@dominykas
Copy link
Member Author

Note [to self?]: why isn't a currentOutlineTarget getting associated with current section when entering sectioning root, but it is associated when entering sectioning content? Is the parentSection the association, or?... What is the "associated" section of a sectioning root anyways?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant