www.webdeveloper.com
Page 9 of 11 FirstFirst ... 7891011 LastLast
Results 121 to 135 of 152

Thread: XHTML -- Still Relevant?

  1. #121
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    When I was younger and fantasizing about being a 1337 h4x0r, I had no idea there was any room for confusion or controversy in any arena of software development. It all seemed so straightforward ...

    And here we've spawned over 120 posts about the continuing relevance of a standard that was ultimately not terribly relevant to begin with.
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  2. #122
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,702
    Quote Originally Posted by svidgen View Post
    ... a standard that was ultimately not terribly relevant to begin with.
    Oh, thanks a lot! That makes this XHTML coder feel so useful!

  3. #123
    Join Date
    Nov 2002
    Posts
    2,632
    I saw a job listing for a web designer/developer that was proficient in HTML 5.

  4. #124
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,702
    In the Calgary area, I hope?

  5. #125
    Join Date
    Jun 2008
    Posts
    221
    In the Calgary area, I hope?
    Do I detect wishful thinking

    'course there's always yhtml and zhtml...........

  6. #126
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,702
    Hopeful thinking.

    Oh, and C-HTML and DHTML and SHTML.

  7. #127
    Join Date
    Nov 2002
    Posts
    2,632
    Quote Originally Posted by Mr Initial Man View Post
    In the Calgary area, I hope?
    Local to me, so MI, US.

  8. #128
    Join Date
    Jan 2011
    Posts
    117
    Anybody tried this?
    HTML Code:
    <!DOCTYPE native>
    <html>
    <head>
      <meta charset=utf-8>
      <title>native</title>
    </head>
    <body>
     <div id=mydiv> my div </div>
    <script>
      mydiv.innerHTML="your div";
      alert(mydiv.tagName);
    </script>
    </body>
    </html>

  9. #129
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,702
    To paraphrase the W3C validator's response: "Puke".

    That being said, I just learned something new: that one can use the ID attribute as a variable name. Thank you very much. (Also works in XHTML; I just checked.)
    Last edited by Mr Initial Man; 09-29-2012 at 04:13 PM.

  10. #130
    Join Date
    Jan 2011
    Posts
    117
    ..and what UA does this client of yours use?!
    I thought so

    Yeah, it can also be used as an Anchor name.
    i.e.: <a href="#mydiv">go to my div</div>
    Last edited by Troy III; 09-29-2012 at 04:19 PM.

  11. #131
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,702
    UPDATE: Using an element's ID as a variable name doesn't work with SVG.

  12. #132
    Join Date
    Jan 2011
    Posts
    117
    Sorry to hear that, but...
    HTML Code:
    <!DOCTYPE html>
    <html>
    
    <head>
    <title>SVG Demo</title>
    <style>
      stop.begin { stop-color:yellow; }
      stop.end { stop-color:green; }
    </style>
    </head>
    
    <body>
    <svg id=svgtest>
      <linearGradient id=gradient>
        <stop class=begin offset=0% />
        <stop class=end offset=100% />
      </linearGradient>
      <rect x=0 y=0 width=100 height=100 style="fill:url(#gradient)" />
      <circle cx=50 cy=50 r=30 style="fill:url(#gradient)" />
    </svg>
    
    <script>
         alert(svgtest.tagName);
         alert(gradient.tagName);
    </script>
    
    </body>
    </html>
    I just tried this, - and it works!

  13. #133
    Join Date
    Jan 2011
    Posts
    117
    It means that you'll most probably have to revise your last statement and check back your code for errors.
    p.s.: I guess "element's ID" is not being used as a "variable name", but as what it really is: a declared public reference to it.

  14. #134
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,702
    The element's ID can only be directly used as a declared public reference in a .html or .xhtml file. If it is used in a file with any other markup extension (.xml, .svg), then this means of referring to it is only supported by Internet Explorer.

  15. #135
    Join Date
    Jan 2011
    Posts
    117
    Quote Originally Posted by Mr Initial Man View Post
    ...(.xml, .svg), then this means of referring to it is only supported by Internet Explorer.
    well, that's my boy... //others should follow!

    Anyway, for cross-browser compatibility, you can always try my underDot platform which is faster than "document.getElementbyId", and smokes any "$()" based functions while being the shortest lib in existence, (weighting less than 40 bytes); using a simple syntax such as: _.elementID; including wrong id definitions: _["element ID"] possibility;
    alas, I would never bother to serve my content in other than *.htm anyway.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles