<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25144</bug_id>
          
          <creation_ts>2014-03-25 11:00:52 +0000</creation_ts>
          <short_desc>While reading the spec for the embed element at &lt;http://dev.w3.org/html5/spec-preview/the-embed-element.html&gt; I stumbled about this sentence: When the element is created with neither a src attribut [...]</short_desc>
          <delta_ts>2014-05-03 00:27:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>robert.buchholz</cc>
    
    <cc>spamfaenger</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102872</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-03-25 11:00:52 +0000</bug_when>
    <thetext>Specification: http://dev.w3.org/html5/spec-preview/Overview.html
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top
Referrer: 

Comment:
While reading the spec for the embed element at
&lt;http://dev.w3.org/html5/spec-preview/the-embed-element.html&gt; I stumbled about
this sentence:

When the element is created with neither a src attribute nor a type attribute,
and when attributes are removed such that neither attribute is present on the
element anymore, and when the element has a media element ancestor, and when
the element has an ancestor object element that is not showing its fallback
content, any plugins instantiated for the element must be removed, and the
embed element represents nothing.

And my internal stack protection immediately kicked in while trying to parse
it.

Can&apos;t you make this easier to parse correctly by braking it down to something
like this:

The plugin instantiated for the embed element must be removed and the element
must represent nothing:
* When the element is created with neither a src attribute nor a type
attribute, 
* when attributes are removed such that neither attribute is present on the
element anymore
* when the element has a media element ancestor, 
* when the element has an ancestor object element that is not showing its
fallback content

That seems much easier to parse as the action is clearly stated at the top and
then the preconditions are clearly listed at equal footing so it is easy to
see that they are all equally important and there is no nesting involved in
the conditions.

Posted from: 92.231.242.149
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102873</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Häcker">spamfaenger</who>
    <bug_when>2014-03-25 11:08:35 +0000</bug_when>
    <thetext>Submitter here, now with account. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103207</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-03-31 22:13:09 +0000</bug_when>
    <thetext>Yup, that should be easy to fix.

Note that you really don&apos;t want to be reading that version of the spec. The up-to-date version is at: http://whatwg.org/html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103218</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Häcker">spamfaenger</who>
    <bug_when>2014-04-01 07:52:13 +0000</bug_when>
    <thetext>Not sure if this is noteworthy, but ogling the spec it seems to me that this phrasing seems to occur in quite some places (though I&apos;m not so sure it&apos;s exactly the same).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105010</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-03 00:26:59 +0000</bug_when>
    <thetext>If you find any other parts that need clearing up, don&apos;t hesitate to file a bug. (You can trivially do so using the text entry widget at the bottom right of the canonical version of the spec: http://whatwg.org/html )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105011</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-05-03 00:27:20 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8602.
Check-in comment: Make this sentence about &lt;embed&gt; less convoluted.
http://html5.org/tools/web-apps-tracker?from=8601&amp;to=8602</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>