IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1834.96 MB
Powered by
Channel Info
Network: freenodeChannel: #html |
Search in www.irclog.org
Log from #html at freenode 2006-05-28
[21:36]<gzznvxzdzds>`html div
[21:36]<rtfs>html div: http://www.w3.org/TR/html401/struct/global.html#edef-DIV
[21:36]<gzznvxzdzds>with, div, they always have to be closed
[21:36]<gzznvxzdzds>"End tag: required"
[21:36]<gzznvxzdzds>other elements like <p> have optional closing tags
[21:37]<lrmdbnacd>i mean as i mentioned i know a site that did that and it did strange things to the background colour/image
[21:37]<gzznvxzdzds>and?
[21:38]<gzznvxzdzds>that's because they screwed something else up then
[21:38]<gzznvxzdzds>not because they closed a <div>
[21:38]<lrmdbnacd>GarethAdams possibly i didnt say it was code code that site had
[21:38]<gzznvxzdzds>I'm missing your point
[21:39]<gzznvxzdzds>it seems to happen a lot
[21:39]<lrmdbnacd>the baground was in opening div
[21:39]<lrmdbnacd>so closing untill the end of the code resulted in breaks of the bacxkground colour or graphic
[21:39]<oz2x>How do you escape the & while parsing variables in url?
[21:40]<gzznvxzdzds>the point is, you say you code to html 4.01 transitional. You also say you can leave a <div> open. However, doing the second cancels out the first.
[21:40]<gzznvxzdzds>OrbX: &
[21:41]<gzznvxzdzds>or do you mean, how do you put an & into the URL without it becoming a variable separator?
[21:41]<lrmdbnacd>hey i have the w3c certificate to say i can code to that standard
[21:41]<oz2x>GarethAdams: What would I do with that?
[21:41]<oz2x>index.php?id=1000
[21:41]<gzznvxzdzds>LadyBecky: I suggest you go get a refund then ;)
[21:41]<lrmdbnacd>i was saying that sometimes it helps to do so
[21:41]<lrmdbnacd># not that its something you should do everytime
[21:41]<gzznvxzdzds>it never help to do so, because it's ivalid
[21:41]<gzznvxzdzds>*invalid
[21:42]<gzznvxzdzds>if you're having problems, it's because something else is wrong
[21:42]<lrmdbnacd>GarethAdams like i say possibly at the time i knew nothing of html and looked like a solution and it worked
[21:42]<oz2x>GarethAdams: When parsing variables through the url get an error when validating the page as valid xhtml 1.0
[21:43]<-- syzzzyus xzs puyv>http://www.bagdadsoftware.de")
[21:43]<gzznvxzdzds>OrbX: since I'm feeling nice, I'll avoid the "Why are you using XHTML?" discussion ;)
[21:43]<gzznvxzdzds>& should always be encoded as & in URLs
[21:43]<znzjs>phew, thats one flame war avoided ;)
[21:43]<oz2x>but i'm using index?var=hello
[21:44]<oz2x>I am using ? not &
[21:44]<gzznvxzdzds>OrbX: then that URL isn't the problem
[21:44]<oz2x>Okay
[21:44]<gzznvxzdzds>unless you're using PHP with sessions, in which case it may be
[21:46]<znzjs>if you use output buffering with php can you parse out the added ?SESSION kruft?
[21:46]<gzznvxzdzds>Zeros: no, that's all added when the page is sent, IIRC
[21:46]<gzznvxzdzds>but there's an ini setting which corrects that behaviour
[21:47]<znzjs>oh awesome
[21:47]<gzznvxzdzds>arg_separator I think
[21:47]<znzjs>will ini_set() work with that?
[21:47]<gzznvxzdzds>check the manual
[21:47]<gzznvxzdzds>but I can't see why it wouldn't
[21:48]<lrmdbnacd>ah i think i found a betetr way of rephrasing what i menat about about divs
[21:51]<gzznvxzdzds>the suspense is killing me...
[21:53]<lrmdbnacd>http://www.w3.org/TR/html401/struct/global.html#edef-DIV <--- shows the code with two </divs> it hasnt automatically did <div="blah"></.div> it put them at the end of the code ats thats what i basically i meant
[21:55]<gzznvxzdzds>but still, you have to close all of them
[21:56]<lrmdbnacd>yes but you dont have to do it straight off wich is what i meant
[21:56]<frrrj>straight off?
[21:56]<gzznvxzdzds>of course you don't :-/ it would be stupid if you had to close tags as soon as you opened them
[21:56]<znzjs> <div="blah"> isn't valid
[21:56]<frrrj>you mean <div></div>This is the div content
[21:57]<frrrj>that is absolutely insane
[21:57]<znzjs><element param="value">
[21:57]<gzznvxzdzds>but you have to close them so that the document nests properly
[21:58]<gzznvxzdzds>LadyBecky: they only close them at the end of the extract because they opened them at the very start. You can't close a tag at the end if you opened it in the middle
[21:58]<znzjs>Fango, any more insane that <p> foo bar baz <p> paragraph number two or <ul> <li>one <li> two <li> three </ul> ? :P
[21:58]<lrmdbnacd>i see GarethAdams :-/
[21:59]<lrmdbnacd><div aligfhn="center"> <.div>
[21:59]<lrmdbnacd>s/aligfhn/align
[21:59]<gzznvxzdzds><li> <div> <a> </a> </div> </li>
[21:59]<gzznvxzdzds>nice and symmetrical and valid
[21:59]<gzznvxzdzds><li> <div> <a> </a> </li> </div>
[21:59]<gzznvxzdzds>^^ not valid
[22:00]<znzjs>careful with that too, you can crash IE with JavaScript when you nest improperly like that :)
[22:00]<lrmdbnacd><div aliggn="center"> <imgn ="blah">] </div>
[22:00]<lrmdbnacd>seen as you really want to be picky
[22:00]<gzznvxzdzds>yup, that's fine (ignoring the typos)
[22:01]<lrmdbnacd>tyupos happen no ones perfect
[22:01]<lynzzjj>the align attribute is deprecated since 1995 though ;]
[22:01]<gzznvxzdzds>most people read what they're about to send and correct the typos though :P
[22:01]<gzznvxzdzds>makes it a lot easier to read
[22:01]<lrmdbnacd>no i do believe div align is still valid code :)
[22:01]<gzznvxzdzds>deprecated != invalid
[22:02]<gzznvxzdzds>deprecated only == "there's a better way to do it"
[22:02]<znzjs>GarethAdams, its invalid for a Strict doctype
[22:02]<lrmdbnacd>looks up w3c i do think your wrong here
[22:02]<lrmdbnacd>ah see
[22:02]<lrmdbnacd> even he said it :)
[22:02]<gzznvxzdzds>LadyBecky's already said she works to Transitional though
[22:02]<lrmdbnacd>] it fine for transitional
[22:03]<znzjs>indeed
[22:03]<gzznvxzdzds>and we've already found out that she's immune to change
[22:03]<znzjs>haha
[22:03]<znzjs>GarethAdams, its quite interesting, trident when it sees invalid nesting rather than closing it inside the element and reopening it outside it like Safari and Firefox do it makes the element the child of both the elements, that div would be the child of both the ul and the li
[22:03]<lrmdbnacd>GarethAdams your wrong there two
[22:03]<gzznvxzdzds>too
[22:03]<lrmdbnacd> intend to change code on the 3or 4th
[22:03]<znzjs>can you say infinite loop when walking the DOM? :P
[22:03]<lrmdbnacd>before than its impossible im afaraid
[22:04]<gzznvxzdzds>Zeros: do you mean code with valid missing close tags, or invalid missing close tags?
[22:04]<lrmdbnacd>GarethAdams most people dont care if its two or two so long as i try and spell something wright]
[22:05]<gzznvxzdzds>LadyBecky: I'm not most people. Don't mind me if I keep correcting it
[22:05]<lrmdbnacd>i wont mind you at all its not against the rules i read them it never said nothing about being a great speller
[22:06]<znzjs>GarethAdams, from what I understand its both, it <p><a></p></a> becomes <p><a></a></p><a></a> in Firefox after it repairs it
[22:06]<znzjs>IE just mucks up the DOM with parent/child relationships







