Change <span class="sidenote"> to <small> #24
Comments
+1 |
This sounds like a good idea. A pull request swapping out the styles in |
Would the pull request involve the front-facing site, too? I'm just trying not to overstep any bounds. |
@tigt Yeah, Be aware that |
I'm iffy about putting sidenotes in the actual text, since it really shouldn't be inside the paragraph in the first place. The HTML would ideally go like this: <p>Words words words words. <sup><a href="#sidenote-1" aria-label="Side note 1">1</a></sup></p>
<!-- bunch more paragraphs and such... -->
<footer>
<h3>Footnotes</h3>
<ol>
<li id="sidenote-1">Words words words words words.</li>
<li id="sidenote-2">Words.</li>
<!-- etc. -->
</ol>
</footer> But without something like the new position-relatively-to-element spec the Community Group is hashing out, it wouldn't be possible to CSS that into the effect you need. So! An acceptable compromise: <span class="sidenote" role="complementary"> What do you think? |
I think several things. First, thanks for your deep thinking on this. Second, I agree that I don't see a way forward for Third, while I agree that sidenote tags would ideally be outside paragraph tags, I specifically do not think they should be at the bottom in a footnote section. Sidenotes aren't just footnotes displayed to the side; they are a semantically distinct object: an aside or citation located immediately adjacent to the content it is related to. Ideally, I would locate each sidenote tag either before or after their associated paragraph tag, and the CSS would, using magic, correctly align them vertically (or hide them on small screens). I don't see a way to accomplish this at the moment. The HTML I want would be like so:
Fourth, a multi-part thought about roles. I like the idea of marking up the data semantically, for all the reasons that one should add semantic markup: accessibility, clarity, ease of API integration, et cetera. But I'm worried about complicating the demo code with technically unnecessary non-MVP attributes. I'm also not sure whether all sidenotes would have the role |
You've definitely convinced me on the foot/sidenotes issue. Keeping them close at hand is a subtle but important distinction. Also, good catch on One could change their styling selector to Ah well. Maybe in a few years the |
New development: Dudley Storey makes the case that these should be This would be a lot easier to implement, but do you agree with his logic? |
@tigt Thanks for bringing that to my attention. Quite interesting, as I was not aware of this changed usage of the tag. This HTML5.1 draft spec specifically mentions side comments as a use case for I suppose I do agree with Storey's logic. I will think on it a bit more. Honestly I think the best course of action may be to find the people working on If I have time in the next week or two I'll modify |
The W3C's HTML5: Edition for Web Authors has some advice for
The advice for I'd like to go ahead and submit a pull request (once I figure out git), but in your opinion, would you prefer leaving the classes on? |
I got the opposite impression from the W3C's
...they even say that On the A pull request to see would be good to look into, but I can't promise it will get accepted. In any case, definitely keep the |
Yeah, I guess I'm confused too. |
This thread is one of the best back-and-forths regarding concerns about which tags to use. However, since there is nothing actionable, I will close it now. |
It seems like a perfect match, really.
The text was updated successfully, but these errors were encountered: