<?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>10355</bug_id>
          
          <creation_ts>2010-08-12 21:41:36 +0000</creation_ts>
          <short_desc>Kill most or all of the special IDL attributes for marquee</short_desc>
          <delta_ts>2010-12-30 22:58:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-marquee-element</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37377</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-08-12 21:41:36 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#the-marquee-element

Comment:
As far as I can tell, no browser but IE actually implements half of these
weird marquee properties.  Firefox 4.0b3 and Chrome dev don&apos;t implement
behavior, bgColor, direction, height, scrollAmount, scrollDelay, trueSpeed, or
width.	Opera 10.60 doesn&apos;t implement bgColor or trueSpeed, and implements
scrollAmount, scrollDelay, height, and width different from the spec says. 
Only IE implements all of them at all, and most seem to differ from what the
spec says.  I doubt Gecko or WebKit will want to implement these, so how about
removing them?

Posted from: 68.175.61.233</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39269</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2010-09-24 09:14:18 +0000</bug_when>
    <thetext>The content attributes work across browsers?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39467</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-09-26 11:57:21 +0000</bug_when>
    <thetext>Sample:

data:text/html,&lt;!doctype html&gt;
&lt;marquee direction=up&gt;Hello&lt;/marquee&gt;
&lt;script&gt;
var el = document.createElement(&quot;marquee&quot;);
el.setAttribute(&quot;direction&quot;, &quot;up&quot;);
alert(el.direction);
&lt;/script&gt;

In Chrome dev, recentish Firefox mozilla-central, and Opera 10.60, the direction=up effect works, but Chrome and Firefox alert &quot;undefined&quot; (Opera alerts &quot;up&quot;).  So it seems like at least some of the content attributes work without corresponding IDL attributes being defined.

More comprehensive survey of IDL attribute support:

data:text/html,&lt;!doctype html&gt;
&lt;script&gt;
var span = document.createElement(&quot;span&quot;);
var attrs = [];
for (var attr in document.createElement(&quot;marquee&quot;)) {
	if ( !(attr in span) ) {
		attrs.push(attr);
	}
}
alert(attrs.join(&quot; &quot;));
&lt;/script&gt;

* IE8: bgColor vspace direction height behavior width loop scrollAmount trueSpeed scrollDelay onfinish onbounce onstart hspace
* Recent Firefox mozilla-central build: align
* Chrome dev: start stop
* Safari 5: start stop
* Opera 10.60: behavior direction height hspace loop scrollAmount scrollDelay vspace width start stop

The intersection of any *two* of Trident, Gecko, and WebKit is apparently zero IDL attributes, so I expect they could all safely be removed from a web compat perspective.  This makes &lt;marquee&gt; weirder (content attributes that work with no corresponding IDL attributes), but it&apos;s surely easier to reach compat by removing useless stuff than by trying to make &lt;marquee&gt; saner, even if it makes an obsolete part of the platform that much less logical.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39601</commentid>
    <comment_count>3</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2010-09-27 18:07:43 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; * Recent Firefox mozilla-central build: align

For reference, this is because document.createElement(&quot;marquee&quot;) is an HTMLDivElement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40048</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-09-30 04:04:51 +0000</bug_when>
    <thetext>Gecko actually supports: _behavior _direction _doMove _fireEvent _loop _onbounce _onfinish _onstart _scrollAmount _scrollDelay _setEventListener _set_behavior _set_direction _set_loop _set_scrollAmount _set_scrollDelay align behavior direction dirsign height init innerDiv loop newPosition onbounce onfinish onstart originalHeight outerDiv runId scrollAmount scrollDelay start startAt startNewDirection stop stopAt trueSpeed width

It&apos;s just that you have to give it time to apply the XBL binding:

   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/656


EDITOR&apos;S RESPONSE: This is an Editor&apos;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: Did Not Understand Request
Change Description: no spec change
Rationale: I&apos;m happy to change this, but I don&apos;t think removing them all is the way to go (at least Opera, Gecko, and IE have a lot in common, even if they don&apos;t all match the spec). More data is probably needed to determine exactly what is needed here, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40855</commentid>
    <comment_count>5</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-10-08 21:42:38 +0000</bug_when>
    <thetext>So new data:

* IE8: behavior bgColor direction height hspace loop onbounce onfinish onstart scrollAmount scrollDelay trueSpeed vspace width
* Gecko: align behavior direction dirsign height init innerDiv loop newPosition onbounce onfinish onstart originalHeight outerDiv runId scrollAmount scrollDelay start startAt startNewDirection stop stopAt trueSpeed width
* WebKit: start stop
* Opera: behavior direction height hspace loop scrollAmount scrollDelay
vspace width start stop

Analysis of specced attributes:

* start, stop: Supported by everyone
* behavior, direction, height, loop, scrollAmount, scrollDelay, width: Supported by everyone but WebKit
* trueSpeed, onbounce, onfinish, onstart: Supported by Trident and Gecko but not Opera
* hspace, vspace: IE/Opera only, definitely drop from spec
* bgColor: IE only, definitely drop from spec

So that&apos;s three we should be able to drop for sure: hspace, vspace, and bgColor aren&apos;t supported by Gecko *or* WebKit.  WebKit appears to really not support all the stuff it doesn&apos;t support, e.g.:

data:text/html,&lt;!doctype html&gt;
&lt;body onload=&quot;document.getElementsByTagName(&apos;marquee&apos;)[0].direction = &apos;up&apos;&quot;&gt;
&lt;marquee&gt;Hello!&lt;/marquee&gt;

works in Opera and Firefox but not Chrome, although

data:text/html,&lt;!doctype html&gt;&lt;marquee direction=up&gt;Hello!&lt;/marquee&gt;

works in all three.  Also see their IDL:

http://trac.webkit.org/browser/trunk/WebCore/html/HTMLMarqueeElement.idl

I&apos;m trying to poke some WebKit people about whether they want to implement the remaining attributes; if they&apos;ve seen no compat issues, it&apos;s probably safe to drop everything but start/stop from the spec.  I don&apos;t see any bugs filed in WebKit&apos;s Bugzilla:

https://bugs.webkit.org/buglist.cgi?short_desc_type=allwordssubstr&amp;short_desc=marquee

But at least bgColor/hspace/vspace can be removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41054</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-12 10:05:46 +0000</bug_when>
    <thetext>Given how cheap these are, is there a compelling reason to move away from IE here? I mean, I don&apos;t really mind, I&apos;d be happy to drop the whole thing, but if it gets us compat with one more site, what&apos;s the harm?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41092</commentid>
    <comment_count>7</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2010-10-12 12:20:12 +0000</bug_when>
    <thetext>My idea was the less IDL clutter the better. But that really only applies to conforming elements. (I.e. not supporting leftMargin on &lt;body&gt;.)

For &lt;marquee&gt; I suppose IDL clutter does not matter. The cost is in supporting any of its content attributes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41128</commentid>
    <comment_count>8</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-10-12 15:57:14 +0000</bug_when>
    <thetext>I don&apos;t really care, as long as we have something everyone is willing to converge on.  I don&apos;t know how many of the unsupported IDL attributes actually represent unsupported content attributes too, though, so it&apos;s possible some of these features would be not entirely trivial to add support for.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41160</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-12 19:32:30 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;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:

Ok. I&apos;m going to punt on this for now. Let&apos;s revisit it when we have test suites and there&apos;s momentum behind getting a bunch of browsers to 100% compliance. If we remove things, it means some browsers will have to remove them as well, don&apos;t forget. So either way browsers will have to change. I think we&apos;ll get the least resistance here to adding features, at least if they&apos;re just IDL reflection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43112</commentid>
    <comment_count>10</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-12-06 23:46:52 +0000</bug_when>
    <thetext>Looks like WebKit agrees with you, since they apparently just implemented all this stuff per spec:

https://bugs.webkit.org/show_bug.cgi?id=49786</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>