Skip to content

Commit

Permalink
[] (0) Filling in the rendering section: remove hit testing (see www-…
Browse files Browse the repository at this point in the history
…style); require more UI for hyperlink auditing.

git-svn-id: http://svn.whatwg.org/webapps@2771 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 10, 2009
1 parent 94f624a commit fceda3f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 153 deletions.
94 changes: 14 additions & 80 deletions index
Expand Up @@ -1068,10 +1068,9 @@
<li><a href=#frames-and-framesets><span class=secno>10.5 </span>Frames and framesets</a></li>
<li><a href=#interactive-media><span class=secno>10.6 </span>Interactive media</a>
<ol>
<li><a href=#hit-testing><span class=secno>10.6.1 </span>Hit testing</a></li>
<li><a href=#links,-forms,-and-navigation><span class=secno>10.6.2 </span>Links, forms, and navigation</a></li>
<li><a href=#the-mark-element-0><span class=secno>10.6.3 </span>The <code>mark</code> element</a></li>
<li><a href=#the-title-attribute-0><span class=secno>10.6.4 </span>The <code title=attr-title>title</code> attribute</a></ol></li>
<li><a href=#links,-forms,-and-navigation><span class=secno>10.6.1 </span>Links, forms, and navigation</a></li>
<li><a href=#the-mark-element-0><span class=secno>10.6.2 </span>The <code>mark</code> element</a></li>
<li><a href=#the-title-attribute-0><span class=secno>10.6.3 </span>The <code title=attr-title>title</code> attribute</a></ol></li>
<li><a href=#print-media><span class=secno>10.7 </span>Print media</a></li>
<li><a href=#interaction-with-css><span class=secno>10.8 </span>Interaction with CSS</a></ol></li>
<li><a href=#obsolete-features><span class=secno>11 </span>Obsolete features</a>
Expand Down Expand Up @@ -40715,8 +40714,8 @@ interface <dfn id=sqlstatementerrorcallback>SQLStatementErrorCallback</dfn> {
present, gives the URLs of the resources that are interested in
being notified if the user follows the hyperlink. The value must be
a space separated list of one or more <span>valid URLs</span>. The
value is used by the user agent when <a href=#following-hyperlinks>following
hyperlinks</a>.</p>
value is used by the user agent for <a href=#hyperlink-auditing>hyperlink
auditing</a>.</p>

<p>For <code><a href=#the-a-element>a</a></code> and <code><a href=#the-area-element>area</a></code> elements that represent
hyperlinks, the relationship between the document containing the
Expand Down Expand Up @@ -40813,7 +40812,7 @@ interface <dfn id=sqlstatementerrorcallback>SQLStatementErrorCallback</dfn> {
<a href=#source-browsing-context>source browsing context</a>.</p>


<h5 id=hyperlink-auditing><span class=secno>5.12.2.1 </span>Hyperlink auditing</h5>
<h5 id=hyperlink-auditing><span class=secno>5.12.2.1 </span><dfn>Hyperlink auditing</dfn></h5>

<p>If an <code><a href=#the-a-element>a</a></code> or <code><a href=#the-area-element>area</a></code> hyperlink element has a
<code title=attr-hyperlink-ping><a href=#ping>ping</a></code> attribute, and the
Expand Down Expand Up @@ -57840,78 +57839,8 @@ textarea { binding: <i title="">textarea</i>; }</pre>

<h3 id=interactive-media><span class=secno>10.6 </span>Interactive media</h3>

<h4 id=hit-testing><span class=secno>10.6.1 </span>Hit testing</h4>

<p class=XXX>this should really be in a CSS spec -- hot to decide
which element is under the cursor --&gt;

<!--

HIT TESTING TRANSPARENCY

Definition: IE considers a point of an element "transparent" if any
one of the following are true:

1. All of the following are true:
a: The computed value of 'background-image' is 'none', and
b: The computed value of 'background-color' is 'transparent', and
c: The point is over a pixel of an AlphaImageLoader filter image
that has an alpha value of 0 (fully transparent), or the
element does not have an AlphaImageLoader filter applied;

2. The point is outside the element's CSS clip rectangle;

3. The computed value of 'visibility' is 'hidden';

4. The element is a transparent IFRAME (in IE, an IFRAME with the
custom attribute "allowtransparency");

5. The element is an OBJECT with the custom attribute "wmode" set to
"transparent" and the point in question is fully transparent.

Given those definitions, when a mouse event occurs, IE finds the
target element as follows:

A. Take the topmost node that is under the point where the pointer
was for the event. For CSS boxes, borders, padding areas and
content areas are considered part of the node, margins and
leading generated by the 'line-height' property are not.

B. If there is no node at that point, no event is fired. STOP.

C. If the node is a text node, then the event is fired at the text
node's nearest ancestor element node. STOP.

D. If the node is not an element, assign the node's nearest
ancestor element node to a variable X. Otherwise, assign the
element node itself to X.

E. If the element X is the BODY element or the HTML element and its
document is not the document of a transparent IFRAME, goto step
H. Similarly, if the element X is a TABLE element, or is an IMG
element, goto step H.

F. If the point where the pointer was is, per the above definition,
a point that on the element X is transparent, then ignore that
element and assign the element that is below that element in the
stacking order to X. If there is no element below X, or if the
point on X is not transparent and so the previous condition
doesn't apply, then leave X as is and go straight to step H.

G. Goto step E.

H. If the element X is now a BODY or TABLE element, but the element
assigned to X in step D was some other element, assign the
element originally assigned in step D back to X.

I. The event goes to X. STOP


-->



<h4 id=links,-forms,-and-navigation><span class=secno>10.6.2 </span>Links, forms, and navigation</h4>
<h4 id=links,-forms,-and-navigation><span class=secno>10.6.1 </span>Links, forms, and navigation</h4>

<p>User agents are expected to allow the user to control aspects of
<a href=#hyperlink>hyperlink</a> activation and <a href=#form-submission-0>form submission</a>,
Expand All @@ -57922,6 +57851,11 @@ target element as follows:
destination of <a href=#hyperlink title=hyperlink>hyperlinks</a> and of
<a href=#the-form-element title=form>forms</a> before triggering their <a href=#navigate title=navigate>navigation</a>.</p>

<p>User agents are expected to inform the user of whether a
<a href=#hyperlink>hyperlink</a> includes <a href=#hyperlink-auditing>hyperlink auditing</a>, and
to let them know at a minimum which domains will be contacted as
part of such auditing.</p>

<p>User agents are expected to allow users to <a href=#navigate>navigate</a>
<a href=#browsing-context title="browsing context">browsing contexts</a> to the
resources <a href=#resolve-a-url title="resolve a url">indicated</a> by the <code title="">cite</code> attributes on <code><a href=#the-q-element>q</a></code>,
Expand All @@ -57930,7 +57864,7 @@ target element as follows:



<h4 id=the-mark-element-0><span class=secno>10.6.3 </span>The <code><a href=#the-mark-element>mark</a></code> element</h4>
<h4 id=the-mark-element-0><span class=secno>10.6.2 </span>The <code><a href=#the-mark-element>mark</a></code> element</h4>

<p>User agents are expected to allow the user to cycle through all
the <code><a href=#the-mark-element>mark</a></code> elements in a <code>Document</code>. User
Expand All @@ -57941,7 +57875,7 @@ target element as follows:



<h4 id=the-title-attribute-0><span class=secno>10.6.4 </span>The <code title=attr-title><a href=#the-title-attribute>title</a></code> attribute</h4>
<h4 id=the-title-attribute-0><span class=secno>10.6.3 </span>The <code title=attr-title><a href=#the-title-attribute>title</a></code> attribute</h4>

<p>Given an element (e.g. the element designated by the mouse
cursor), if the element, or one of its ancestors, has a <code title=attr-title><a href=#the-title-attribute>title</a></code> attribute, and the nearest such
Expand Down
81 changes: 8 additions & 73 deletions source
Expand Up @@ -46298,8 +46298,8 @@ interface <dfn>SQLStatementErrorCallback</dfn> {
present, gives the URLs of the resources that are interested in
being notified if the user follows the hyperlink. The value must be
a space separated list of one or more <span>valid URLs</span>. The
value is used by the user agent when <span>following
hyperlinks</span>.</p>
value is used by the user agent for <span>hyperlink
auditing</span>.</p>

<p>For <code>a</code> and <code>area</code> elements that represent
hyperlinks, the relationship between the document containing the
Expand Down Expand Up @@ -46406,7 +46406,7 @@ interface <dfn>SQLStatementErrorCallback</dfn> {
<span>source browsing context</span>.</p>


<h5>Hyperlink auditing</h5>
<h5><dfn>Hyperlink auditing</dfn></h5>

<p>If an <code>a</code> or <code>area</code> hyperlink element has a
<code title="attr-hyperlink-ping">ping</code> attribute, and the
Expand Down Expand Up @@ -63382,76 +63382,6 @@ textarea { binding: <i title="">textarea</i>; }</pre>

<h3>Interactive media</h3>

<h4>Hit testing</h4>

<p class="XXX">this should really be in a CSS spec -- hot to decide
which element is under the cursor -->

<!--

HIT TESTING TRANSPARENCY

Definition: IE considers a point of an element "transparent" if any
one of the following are true:

1. All of the following are true:
a: The computed value of 'background-image' is 'none', and
b: The computed value of 'background-color' is 'transparent', and
c: The point is over a pixel of an AlphaImageLoader filter image
that has an alpha value of 0 (fully transparent), or the
element does not have an AlphaImageLoader filter applied;

2. The point is outside the element's CSS clip rectangle;

3. The computed value of 'visibility' is 'hidden';

4. The element is a transparent IFRAME (in IE, an IFRAME with the
custom attribute "allowtransparency");

5. The element is an OBJECT with the custom attribute "wmode" set to
"transparent" and the point in question is fully transparent.

Given those definitions, when a mouse event occurs, IE finds the
target element as follows:

A. Take the topmost node that is under the point where the pointer
was for the event. For CSS boxes, borders, padding areas and
content areas are considered part of the node, margins and
leading generated by the 'line-height' property are not.

B. If there is no node at that point, no event is fired. STOP.

C. If the node is a text node, then the event is fired at the text
node's nearest ancestor element node. STOP.

D. If the node is not an element, assign the node's nearest
ancestor element node to a variable X. Otherwise, assign the
element node itself to X.

E. If the element X is the BODY element or the HTML element and its
document is not the document of a transparent IFRAME, goto step
H. Similarly, if the element X is a TABLE element, or is an IMG
element, goto step H.

F. If the point where the pointer was is, per the above definition,
a point that on the element X is transparent, then ignore that
element and assign the element that is below that element in the
stacking order to X. If there is no element below X, or if the
point on X is not transparent and so the previous condition
doesn't apply, then leave X as is and go straight to step H.

G. Goto step E.

H. If the element X is now a BODY or TABLE element, but the element
assigned to X in step D was some other element, assign the
element originally assigned in step D back to X.

I. The event goes to X. STOP


-->



<h4>Links, forms, and navigation</h4>

Expand All @@ -63465,6 +63395,11 @@ target element as follows:
<span title="form">forms</span> before triggering their <span
title="navigate">navigation</span>.</p>

<p>User agents are expected to inform the user of whether a
<span>hyperlink</span> includes <span>hyperlink auditing</span>, and
to let them know at a minimum which domains will be contacted as
part of such auditing.</p>

<p>User agents are expected to allow users to <span>navigate</span>
<span title="browsing context">browsing contexts</span> to the
resources <span title="resolve a url">indicated</span> by the <code
Expand Down

0 comments on commit fceda3f

Please sign in to comment.