This repository has been archived by the owner on Jul 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…less
- Loading branch information
Travis-CI
committed
Apr 30, 2016
0 parents
commit a9413d5
Showing
169 changed files
with
173,468 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
<!doctype html><html lang="en"> | ||
<head> | ||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> | ||
<title>HTML 5.1: 4.14. Disabled elements</title> | ||
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport"> | ||
<meta content="ED" name="w3c-status"> | ||
<link href="../default.css" rel="stylesheet" type="text/css"> | ||
<link href="../csslogo.ico" rel="shortcut icon" type="image/x-icon"> | ||
<link href="styles/styles-html.css" rel="stylesheet" type="text/css"> | ||
<link href="https://www.w3.org/StyleSheets/TR/2016/W3C-ED" rel="stylesheet" type="text/css"> | ||
<meta content="Bikeshed 1.0.0" name="generator"> | ||
<style> | ||
.dfn-panel { | ||
display: inline-block; | ||
position: absolute; | ||
z-index: 35; | ||
height: auto; | ||
width: -webkit-fit-content; | ||
max-width: 300px; | ||
max-height: 500px; | ||
overflow: auto; | ||
padding: 0.5em 0.75em; | ||
font: small Helvetica Neue, sans-serif, Droid Sans Fallback; | ||
background: #DDDDDD; | ||
color: black; | ||
border: outset 0.2em; | ||
} | ||
.dfn-panel:not(.on) { display: none; } | ||
.dfn-panel * { margin: 0; padding: 0; text-indent: 0; } | ||
.dfn-panel > b { display: block; } | ||
.dfn-panel a { color: black; } | ||
.dfn-panel a:not(:hover) { text-decoration: none !important; border-bottom: none !important; } | ||
.dfn-panel > b + b { margin-top: 0.25em; } | ||
.dfn-panel > span { display: list-item; list-style: inside; } | ||
.dfn-panel.activated { | ||
display: inline-block; | ||
position: fixed; | ||
left: .5em; | ||
bottom: .5em; | ||
margin: 0 auto; | ||
max-width: calc(100vw - 1.5em - .4em - .5em); | ||
max-height: 30vh; | ||
} | ||
|
||
.dfn-paneled { cursor: pointer; } | ||
</style> | ||
<style>.highlight .hll { background-color: #ffffcc } | ||
.highlight { background: #ffffff; } | ||
.highlight .c { color: #708090 } /* Comment */ | ||
.highlight .k { color: #990055 } /* Keyword */ | ||
.highlight .l { color: #000000 } /* Literal */ | ||
.highlight .n { color: #0077aa } /* Name */ | ||
.highlight .o { color: #999999 } /* Operator */ | ||
.highlight .p { color: #999999 } /* Punctuation */ | ||
.highlight .ch { color: #708090 } /* Comment.Hashbang */ | ||
.highlight .cm { color: #708090 } /* Comment.Multiline */ | ||
.highlight .cp { color: #708090 } /* Comment.Preproc */ | ||
.highlight .cpf { color: #708090 } /* Comment.PreprocFile */ | ||
.highlight .c1 { color: #708090 } /* Comment.Single */ | ||
.highlight .cs { color: #708090 } /* Comment.Special */ | ||
.highlight .kc { color: #990055 } /* Keyword.Constant */ | ||
.highlight .kd { color: #990055 } /* Keyword.Declaration */ | ||
.highlight .kn { color: #990055 } /* Keyword.Namespace */ | ||
.highlight .kp { color: #990055 } /* Keyword.Pseudo */ | ||
.highlight .kr { color: #990055 } /* Keyword.Reserved */ | ||
.highlight .kt { color: #990055 } /* Keyword.Type */ | ||
.highlight .ld { color: #000000 } /* Literal.Date */ | ||
.highlight .m { color: #000000 } /* Literal.Number */ | ||
.highlight .s { color: #a67f59 } /* Literal.String */ | ||
.highlight .na { color: #0077aa } /* Name.Attribute */ | ||
.highlight .nc { color: #0077aa } /* Name.Class */ | ||
.highlight .no { color: #0077aa } /* Name.Constant */ | ||
.highlight .nd { color: #0077aa } /* Name.Decorator */ | ||
.highlight .ni { color: #0077aa } /* Name.Entity */ | ||
.highlight .ne { color: #0077aa } /* Name.Exception */ | ||
.highlight .nf { color: #0077aa } /* Name.Function */ | ||
.highlight .nl { color: #0077aa } /* Name.Label */ | ||
.highlight .nn { color: #0077aa } /* Name.Namespace */ | ||
.highlight .py { color: #0077aa } /* Name.Property */ | ||
.highlight .nt { color: #669900 } /* Name.Tag */ | ||
.highlight .nv { color: #0077aa } /* Name.Variable */ | ||
.highlight .ow { color: #999999 } /* Operator.Word */ | ||
.highlight .mb { color: #000000 } /* Literal.Number.Bin */ | ||
.highlight .mf { color: #000000 } /* Literal.Number.Float */ | ||
.highlight .mh { color: #000000 } /* Literal.Number.Hex */ | ||
.highlight .mi { color: #000000 } /* Literal.Number.Integer */ | ||
.highlight .mo { color: #000000 } /* Literal.Number.Oct */ | ||
.highlight .sb { color: #a67f59 } /* Literal.String.Backtick */ | ||
.highlight .sc { color: #a67f59 } /* Literal.String.Char */ | ||
.highlight .sd { color: #a67f59 } /* Literal.String.Doc */ | ||
.highlight .s2 { color: #a67f59 } /* Literal.String.Double */ | ||
.highlight .se { color: #a67f59 } /* Literal.String.Escape */ | ||
.highlight .sh { color: #a67f59 } /* Literal.String.Heredoc */ | ||
.highlight .si { color: #a67f59 } /* Literal.String.Interpol */ | ||
.highlight .sx { color: #a67f59 } /* Literal.String.Other */ | ||
.highlight .sr { color: #a67f59 } /* Literal.String.Regex */ | ||
.highlight .s1 { color: #a67f59 } /* Literal.String.Single */ | ||
.highlight .ss { color: #a67f59 } /* Literal.String.Symbol */ | ||
.highlight .vc { color: #0077aa } /* Name.Variable.Class */ | ||
.highlight .vg { color: #0077aa } /* Name.Variable.Global */ | ||
.highlight .vi { color: #0077aa } /* Name.Variable.Instance */ | ||
.highlight .il { color: #000000 } /* Literal.Number.Integer.Long */ | ||
.highlight { background: hsl(24, 20%, 95%); } | ||
code.highlight { padding: .1em; border-radius: .3em; } | ||
pre.highlight, pre > code.highlight { display: block; padding: 1em; margin: .5em 0; overflow: auto; border-radius: 0; } | ||
</style> | ||
</head><body class="h-entry"> | ||
<div class="head"> | ||
<header> | ||
<p data-fill-with="logo"><a href="http://www.w3.org/"><img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"></a></p> | ||
<h1 class="p-name no-ref allcaps" id="title">HTML 5.1</h1> | ||
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2016-04-30">30 April 2016</time></span></h2> | ||
</header> | ||
|
||
|
||
|
||
|
||
</div> | ||
|
||
|
||
|
||
|
||
|
||
<nav data-fill-with="table-of-contents" id="toc"><p class="prev_next">← <a href="common-idioms-without-dedicated-elements.html#common-idioms-without-dedicated-elements"><span class="secno">4.13</span> <span class="content">Common idioms without dedicated elements</span></a> — <a href="index.html#contents">Table of contents</a> — <a href="matching-html-elements-using-selectors.html#matching-html-elements-using-selectors"><span class="secno">4.15</span> <span class="content">Matching HTML elements using selectors</span></a> →</p> | ||
<h2 class="no-num no-toc no-ref" id="contents">Table of Contents</h2> | ||
<ol class="toc" role="directory"><li><a href="disabled-elements.html#disabled-elements"><span class="secno">4.14</span> <span class="content">Disabled elements</span></a> | ||
</li></ol> | ||
</nav> | ||
<main><section> | ||
<h3 class="heading settled" data-level="4.14" id="disabled-elements"><span class="secno">4.14. </span><span class="content">Disabled elements</span><a class="self-link" href="disabled-elements.html#disabled-elements"></a></h3> | ||
<p>An element is said to be <dfn class="dfn-paneled" data-dfn-type="dfn" data-lt="disabling|actually disabled" data-noexport="" id="disabling">actually disabled<span class="dfn-panel" data-deco=""><b><a href="disabled-elements.html#disabling">#disabling</a></b><b>Referenced in:</b><span><a href="sec-forms.html#ref-for-disabling-1">4.10.9. The optgroup element</a></span><span><a href="matching-html-elements-using-selectors.html#ref-for-disabling-2">4.15.2. Pseudo-classes</a></span><span><a href="editing.html#ref-for-disabling-3">5.4.2. Data model</a> <a href="editing.html#ref-for-disabling-4">(2)</a></span><span><a href="editing.html#ref-for-disabling-5">5.4.3. The tabindex attribute</a></span></span></dfn> if it | ||
falls into one of the following categories:</p> | ||
<ul> | ||
<li>a <code><a data-link-type="element" href="sec-forms.html#elementdef-button" id="ref-for-elementdef-button-34">button</a></code> element that is disabled | ||
</li><li>an <code><a data-link-type="element" href="sec-forms.html#elementdef-input" id="ref-for-elementdef-input-275">input</a></code> element that is disabled | ||
</li><li>a <code><a data-link-type="element" href="sec-forms.html#elementdef-select" id="ref-for-elementdef-select-102">select</a></code> element that is disabled | ||
</li><li>a <code><a data-link-type="element" href="sec-forms.html#elementdef-textarea" id="ref-for-elementdef-textarea-71">textarea</a></code> element that is disabled | ||
</li><li>an <code><a data-link-type="element" href="sec-forms.html#elementdef-optgroup" id="ref-for-elementdef-optgroup-20">optgroup</a></code> element that has a <code>disabled</code> attribute | ||
</li><li>an <code><a data-link-type="element" href="sec-forms.html#elementdef-option" id="ref-for-elementdef-option-102">option</a></code> element that is disabled | ||
</li><li>a <code><a data-link-type="element" href="interactive-elements.html#elementdef-menuitem" id="ref-for-elementdef-menuitem-14">menuitem</a></code> element that has a <code>disabled</code> attribute | ||
</li><li>a <code><a data-link-type="element" href="sec-forms.html#elementdef-fieldset" id="ref-for-elementdef-fieldset-34">fieldset</a></code> element that is a <a data-link-type="dfn" href="sec-forms.html#disabled-fieldset" id="ref-for-disabled-fieldset-1">disabled fieldset</a> | ||
</li></ul> | ||
<p class="note" role="note"> This definition is used to determine what elements <a data-link-type="dfn" href="editing.html#can-be-focused" id="ref-for-can-be-focused-1">can be focused</a> and which elements match the <code>:disabled</code> pseudo-class. </p> | ||
<div class="impl"></div> | ||
</section></main> | ||
<script src="https://www.w3.org/scripts/TR/2016/fixup.js"></script> | ||
<script> | ||
document.body.addEventListener("click", function(e) { | ||
var queryAll = function(sel) { return [].slice.call(document.querySelectorAll(sel)); } | ||
// Find the dfn element or panel, if any, that was clicked on. | ||
var el = e.target; | ||
var target; | ||
while(el.parentElement) { | ||
if(el.tagName == "DFN") { | ||
target = "dfn"; | ||
break; | ||
} | ||
if(/H\d/.test(el.tagName) && el.getAttribute('data-dfn-type') != null) { | ||
target = "dfn"; | ||
break; | ||
} | ||
if(el.classList.contains("dfn-panel")) { | ||
target = "dfn-panel"; | ||
break; | ||
} | ||
el = el.parentElement; | ||
} | ||
if(target != "dfn-panel") { | ||
// Turn off any currently "on" or "activated" panels. | ||
queryAll(".dfn-panel.on, .dfn-panel.activated").forEach(function(el){ | ||
el.classList.remove("on"); | ||
el.classList.remove("activated"); | ||
}); | ||
} | ||
if(target == "dfn") { | ||
// open the panel | ||
var dfnPanel = el.querySelector(".dfn-panel"); | ||
if(dfnPanel) { | ||
dfnPanel.classList.add("on"); | ||
} | ||
} else if(target == "dfn-panel") { | ||
// Switch it to "activated" state, which pins it. | ||
el.classList.add("activated"); | ||
} | ||
|
||
}); | ||
</script><p class="prev_next">← <a href="common-idioms-without-dedicated-elements.html#common-idioms-without-dedicated-elements"><span class="secno">4.13</span> <span class="content">Common idioms without dedicated elements</span></a> — <a href="index.html#contents">Table of contents</a> — <a href="matching-html-elements-using-selectors.html#matching-html-elements-using-selectors"><span class="secno">4.15</span> <span class="content">Matching HTML elements using selectors</span></a> →</p></body></html> |
Oops, something went wrong.