These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:06 pm Advanced search

suggest media attribute in <script> element

Do you think the HTML spec should do something differently? You can discuss spec feedback here, but you should send it to the WHATWG mailing list or file a bug in the W3C bugzilla for it to be considered.

suggest media attribute in <script> element

Postby tenshi » Tue Dec 11, 2007 3:01 am

Nowadays many javascript libraries control css properties, almost in screen media. In this case, javascript may cause problems what cannot use web sites in other media or do not use CSS.

UI using javascript(e.g. Drag & Drop Library) gives benefit to people, but gives harm to some others(e.g. users with aural media).

Drag & Drop UI Example
Image
Code: Select all
<div>
  <img alt="Mug" src="/images/products/product1.png?1192409176">
  <script type="text/javascript" media="screen">
  //<![CDATA[
  new Draggable("product_1", {revert:true})
  //]]>
  </script>

  <img alt="T-Shirt" src="/images/products/product2.png?1192409176">
  <script type="text/javascript" media="screen">
  //<![CDATA[
  new Draggable("product_2", {revert:true})
  //]]>
  </script>
</div>

<h2>Your cart:</h2>

<div id="cart"> 
  <ul id="items">
    <li>&nbsp;</li>
  </ul>
<div>
tenshi
<h6>
 
Posts: 1
Joined: Thu Jul 26, 2007 5:25 am
Location: seoul, korea

Postby zcorpan » Thu Dec 13, 2007 10:05 am

Please review the draft on drag and drop and comment on whether it sufficiently addresses device independence:

http://www.whatwg.org/specs/web-apps/cu ... d.html#dnd

(It's not clear to me how a media attribute would be helpful here, actually.)

Thanks!
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to Feedback on the Specs

Who is online

Users browsing this forum: No registered users and 1 guest