#microformats 2013-11-28

2013-11-28 UTC
tantek and odra joined the channel
#
odra
Hello
#
odra
Who do I have to talk to to get <a rel="alternate stylesheet"> as a way to switch preferred stylesheets in HTML?
#
tantek
well those are valid rel values in HTML currently
#
tantek
what do you want <a rel="alternate stylesheet"> to actually do? It won't display a hyperlink because there's no href
#
tantek
and btw, welcome odra! :)
#
odra
tantek: Thanks. :D
#
odra
tantek: Well, I'd like that <a rel="alternate stylesheet" href="other.css" title="Other Style"> was a way to markup an alternate stylesheet that would preferably get switched on when the link is activated instead of browsers navigating to it.
#
odra
tantek: As it stands, alternate stylesheets are difficult to use since most browsers don't have support in their GUI to switch them, and to switch them from a page you would need javascript. I'd like to make anchors marked up as alternate stylesheets to become the standard way of working with them.
#
tantek
odra indeed - I wrote a bookmarklet/favelet >10 years ago to add that functionality to IE5/Mac :)
#
tantek
(alternate stylesheets chooser)
#
odra
tantek: Can you tell me how can I make it a proposal? To whoever might make it happen?
#
tantek
well there's already the suggestion that browser provide a UI for <link rel="alternate stylesheet"> elements but that doesn't seem to have gotten much uptake
#
tantek
one way to get browser to consider implementing it is to file a bug
#
tantek
(for each browser that you want to see the feature)
#
tantek
hmm … looks like that UI feature was in HTML4 but dropped from HTML5
#
tantek
and delegated to CSSOM
#
tantek
so that means it's probably wide open to request an implementation in browsers
#
tantek
e.g. here's a bug requesting it in Mozilla / Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=51848 - you could add a comment there in support of it
#
tantek
oh - odra - have you tried using Firefox and the View > Page Style menu?
#
tantek
and then choose the View menu, Page Style > … and pick something from that hierarchical menu
#
odra
tantek: Yes, but most of the talk on alternate stylesheets are about the <link> element.
#
odra
tantek: I want to propose using alternate stylesheets with the <a> element which would allow browsers to use the anchor metadata to switch stylesheets.
#
tantek
but what would that add over using the <link> element with "title" attribute?
#
tantek
what's the advantage?
#
odra
tantek: It would allow developers to display the link to the alternate stylesheets in the page contents.
#
tantek
odra - developers can already do that with javascript
#
tantek
e.g. using a stylesheet switcher with the DOM/CSSOM
#
tantek
so the challenge there is to show that there is enough interest in doing so via a JS library that it would be worth the time and effort to add it to the browser itself.
#
tantek
if not many sites care to put in a little JS for this functionality (e.g. the burden of documenting that is that of the proposer), then it's not worth adding it to a browser
#
odra
tantek: You could see it in reverse.
#
tantek
nope - new feature is work, therefore it has the burden of proof/evidence
#
odra
tantek: That many sites don't add alternate stylesheets because of the burden in doing so.
#
odra
tantek: Yes, but the thing is alternate stylesheets are already a thing.
#
tantek
odra - just adding alternate stylesheets is easy
#
tantek
and you get a UI in the browser *right now*
#
tantek
see aforementioned View > Page Styles >
#
odra
tantek: You get a UI in one browser.
#
tantek
so file bugs against other browser to at least provide that
#
odra
tantek: That doesn't even appear if you hide the menu bar.
#
tantek
if you can't convince other browsers to add support for *existing* alternate style sheets, you're unlikely to make progress asking for a *new* feature
#
odra
tantek: It bothers me that there is already mark up and a micro format for it but browsers still can't infer it what they should do.
#
tantek
odra - browsers can infer - the simplest path is to just implement a UI like what Firefox does
#
tantek
you may need to file explicit bugs against Safari, Chrome, and IE to do so. That would be the logical place to start: "Firefox supports standards HTML+CSS alternate stylesheets, so should you"
#
odra
tantek: That is in <link> not in <a>.
#
tantek
that's likely your path of least resistance to making progress on this front. take those steps and see if you can make that work - feel free to paste URLs to the bugs you create so others can follow along
#
tantek
odra - right that's the path of least resistance
#
tantek
implement what's already defined and specified
#
tantek
rather than attempting to propose a new feature
#
odra
tantek: That sounds ridiculously troublesome.
#
odra
tantek: This is just my opnion but it should be easier to maintain a feature that works with anchors maintained by web developers than to maintain a feature that works with the UI of the browser.
#
tantek
odra - it's more troublesome to propose a new feature
#
tantek
so if you think that sounds ridiculous, then you're asking for even more ridiculous
#
tantek
it's actually less work to put it in the UI of the browser because there is no impact on layout / content
#
tantek
(and thus compatibility)
#
tantek
alternatively, you're also welcome to ignore my guidance and simply write a proposal in email and send it to www-style@w3.org
#
odra
tantek: Yes I'm trying to subscribe to it :)
#
tantek
also - if you want to refer to this conversation: http://logbot.glob.com.au/?c=freenode%23microformats&s=today#c69947
#
odra
tantek: I know it sounds quite ridiculous because the browsers haven't yet implemented ANY way of changing the stylesheets, but I like to believe the ways avaiable are in fault.
#
odra
tantek: For example, even if a developer made an alternate style avaiable through <link>, the user would most likely be unaware of this.
#
tantek
odra - already answered - if the developer wants to provide an explicit UI in the page - they can already do so via the DOM/CSSOM
#
tantek
they're welcome to re-use my JS code from my alternate style sheet chooser at http://favelets.com/
#
odra
tantek: For the user to be aware the developer would have to mention the alternate stylesheet in the page, with javascript and DOM/CSSOM.
#
tantek
and the developer can do that today if they care to do so
#
tantek
and if even a dozen developers don't care to do so (challenge you to find a dozen that to), then why should the browsers care to do so themselves?
#
odra
tantek: But since the developer has to mention it in the page, <a> would be most fitting than <link> to refer to the stylesheet. Which is why I think making the rel="alternate stylesheet" work with <a> is not more ridiculous than making browsers implement the <link> noe
#
tantek
odra - if you want to enable that use of <a>, then you yourself could develop a JS shim that implements it
#
tantek
then all you have to do is convince developers that it's worth providing that UI on their site
#
odra
tantek: I was actually thinking of doing that :u
#
odra
tantek: I'll see to it this weekend. :)
#
tantek
then in that case, you're welcome to re-use any of the JS from favelets.com :)
#
odra
tantek: thanks :D
shaners, KevinMarks2, romainneutron, singpolyma, tobyink and waterbaby999_ joined the channel
#
@kamtiyono
Convince your reader using Author hReview Pro, WordPress Plugin to Start your Review Website http://theblogcourse.com/author-hreview-wordpress-plugin/#comment-585 via @sharethis
(twitter.com/_/status/406058662587662336)
singpolyma and tantek joined the channel
#
@ayunuraisyah17
RT @kamtiyono: Convince your reader using Author hReview Pro, WordPress Plugin to Start your Review Website http://theblogcourse.com/author-hreview-wordpress-plugin/#comment-585 via @sha
(twitter.com/_/status/406075707853246464)
singpolyma, Atamido, tantek, barnabywalters, jschweinsberg, KevinMarks_, tobyink, shaners, singpoly1a and gavinc joined the channel