This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13059 - add a disabled attribute to link and style elements
Summary: add a disabled attribute to link and style elements
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P5 enhancement
Target Milestone: ---
Assignee: contributor
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-25 12:47 UTC by Daniel Glazman
Modified: 2011-08-14 06:21 UTC (History)
6 users (show)

See Also:


Attachments

Description Daniel Glazman 2011-06-25 12:47:35 UTC
(note: this was submitted as an HTML4 erratum looooong ago to the
 XHTML2 WG ; I am surprised the current HTML WG did not get it in
 the list of HTML4 errata)

The DOM Level 2 offers a boolean 'disabled' attribute on the
StyleSheet interface. This boolean attribute is _extremely_ important
to content editors because it allows to see how a given stylesheet
affects the rendering of a document.

But this boolean DOM attribute has _always_ raised an issue: it's
impossible to save the enabled/disabled status of a stylesheet and
that is a serious problem for content editors.

I then recommend the addition of a companion html 'disabled' attribute
on <link> and <style> elements matching exactly the DOM one.
Comment 1 Aryeh Gregor 2011-06-26 22:38:22 UTC
What are specific use-cases where this is a serious problem for content editors?
Comment 2 Daniel Glazman 2011-06-27 05:36:54 UTC
(In reply to comment #1)
> What are specific use-cases where this is a serious problem for content
> editors?

Ability to save the current status of the document in the editor ????
Comment 3 Michael[tm] Smith 2011-08-04 05:14:03 UTC
mass-move component to LC1
Comment 4 Ian 'Hixie' Hickson 2011-08-14 06:21:48 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: Why would you want to publish a file with a disabled style sheet?

If the need is just for round-tripping during editing, then there's no need for the editor to limit itself to the HTML standard. Just use a custom attribute documented in a spec that applies to the documents used during editing. You'll need something similar to handle all manner of other round-tripping complications, like whitespace around the DOCTYPE or between attributes, the order of attributes, values in input controls when those aren't the default values, the current alternative style sheet set selection, the current scroll position if it doesn't match an ID, etc etc etc.

If you actually want to publish a disabled style sheet, just comment it out.