NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 570 - Fix some algorithms aronud 'about'.
Fix some algorithms aronud 'about'.
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-27 14:36 CEST by Henri Sivonen
Modified: 2009-05-27 14:53 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2009-05-27 14:36:43 CEST
Index: source
===================================================================
--- source	(revision 3105)
+++ source	(revision 3106)
@@ -49945,12 +49945,14 @@
 
    <li><p>If of the elements whose <span
    title="concept-item-corresponding">corresponding item</span> is
-   <var title="">item</var>, exactly one has a <span title="property
-   names">property name</span> equal to the string "<code
-   title="">about</code>", and that element is a <span title="URL
-   property elements">URL property element</span>, let <var
-   title="">subject</var> be the <span
-   title="concept-property-value">value</span> of that
+   <var title="">item</var>, there are any with a <span
+   title="property names">property name</span> equal to the string
+   "<code title="md-about">about</code>", and the first such element
+   is a <span title="URL property elements">URL property
+   element</span>, and its <span
+   title="concept-property-value">value</span> is not an <span
+   title="concept-item">item</span>, let <var title="">subject</var>
+   be the <span title="concept-property-value">value</span> of that
    property. Otherwise, let <var title="">subject</var> be a new blank
    node.</p></li>
 
@@ -50022,7 +50024,7 @@
       <ol>
 
        <li><p>If <var title="">name</var> is equal to the string
-       "<code title="">about</code>", skip this name.</p></li>
+       "<code title="md-about">about</code>", skip this name.</p></li>
 
        <li><p>Otherwise, if <var title="">name</var> is not an
        <span>absolute URL</span>, then let <var title="">name</var> be
@@ -50101,15 +50103,30 @@
    to <var title="">output</var>.</p></li>
 
    <li><p><span>Add a vCard line</span> with the type "<code
-   title="">SOURCE</code>" and <span>the document's current
+   title="">SOURCE</code>" and the result of <span>escaping the vCard
+   text string</span> that is the <span>the document's current
    address</span> as the value to <var title="">output</var>.</p></li>
 
    <li><p>If <span>the <code>title</code> element</span> is not null,
    <span>add a vCard line</span> with the type "<code
-   title="">NAME</code>" and the <code>textContent</code> of <span>the
-   <code>title</code> element</span> as the value to <var
+   title="">NAME</code>" and with the result of <span>escaping the
+   vCard text string</span> obtained from the <code>textContent</code>
+   of <span>the <code>title</code> element</span> as the value to <var
    title="">output</var>.</p></li>
 
+   <li><p>If there is a property named <code
+   title="md-about">about</code> whose <span
+   title="concept-item-corresponding">corresponding item</span> is
+   <var title="">node</var> and the element of the first such property
+   is a <span title="URL property elements">URL property
+   element</span> and has a <span
+   title="concept-property-value">value</span> that is not an <span
+   title="concept-item">item</span>, <span>add a vCard line</span>
+   with the type "<code title="">UID</code>" and with the result of
+   <span>escaping the vCard text string</span> that is that property's
+   <span title="concept-property-value">value</span> as the value to
+   <var title="">output</var>.</p></li>
+
    <li>
 
     <p>For each element <var title="">element</var> that has one or
@@ -50121,8 +50138,8 @@
 
     <ol>
 
-     <li><p>If <var title="">name</var> is equal to the string
-     "<code title="">about</code>", skip this name.</p></li>
+     <li><p>If <var title="">name</var> is equal to the string "<code
+     title="md-about">about</code>", skip this name.</p></li>
 
      <li><p>Let <var title="">parameters</var> be an empty set of
      name-value pairs.</p></li>