-
nsITobin
rest well frg
-
nsITobin
else if (html && Preferences::GetBool("content.html.disable", false)) {
-
nsITobin
if (viewSource) {
-
nsITobin
mParser->MarkAsNotScriptCreated("view-source");
-
nsITobin
} else {
-
nsITobin
mParser->MarkAsNotScriptCreated("plain-text");
-
nsITobin
}
-
nsITobin
-
nsITobin
;)
-
nsITobin
html is plain text
-
nsITobin
while everything else stays working
-
nsITobin
I think this means I have won..
-
nsITobin
i can kill html5
-
nsITobin
LOL
-
nsITobin
tomman:
-
nsITobin
oh i should apply this patch to seamonkey see how composer reacts
-
nsITobin
might shed some light on how the code works at a deeper level
-
nsITobin
-
nsITobin
HTML5 as a choice.. what a novel concept
-
nsITobin
seamonkey may be too modern to get away with this hack
-
nsITobin
consider that lol
-
nsITobin
been a while since I went to some fun but ridiculous means to prove something .. what am I out to prove? I dunno that also makes it fun!
-
nsITobin
oh that is fun..
-
nsITobin
if this were a serious patch for seamonkey I'd likely have the pref default html mail to text regardless but not html as text lol.. now composer
-
nsITobin
composer seems completely unphased must not use nsHTMLDocument cause its the editor
-
Sompi
Paypal's security check doesn't let Seamonkey through anymore
-
tomman
lolPaypal
-
tomman
I avoid them like the plague
-
nsITobin
paypal doesn't serve valid xml
-
nsITobin
cause html by the pref i added is treated as xhtml
-
nsITobin
tomman: the web is much simpler without html5
-
jonadab
Eww, Paypal.
-
jonadab
Fundamentally dishonest company. Their whole schtick is to convince users that they are essentially a financial service, while steadfastly telling the government that they are a social media site or something and don't provide any financial services, nosiree.
-
jonadab
(To avoid having to comply with inconvenient laws and regulations, naturally.)
-
nsITobin
basically yeah tho given the fact that xhtml documents are not ever actually validated against a schema or dtd and the fact that it gets access to any of the defined dom elements AND chrome can do xhtml as well maybe not as well but well enough so i figure let's all just switch to xhtml anywhere we can
-
jonadab
My biggest complaint about XHTML is, you can't put block-level elements inside of paragraphs. But HTML5 doesn't fix this.
-
jonadab
I don't understand why more people don't complain about this deficiency. Am I the only one who thinks it's preposterous, that paragraphs can't contain block-level elements? It makes the p element essentially useless, and we all have to use div (possibly with a class) instead.
-
jonadab
And then style it to have a bottom margin, or whatever.
-
jonadab
Which, fine, I *guess* that's ok, but why even have a p element in the doctype then?
-
nsITobin
jonadab: well .. first things first.. revive xhtml
-
jonadab
Revive? Has something happened to it?
-
jonadab
I mean, other than all the "cool kids" not using it any more?
-
nsITobin
yeah no one uses it let alone sends it as xml
-
jonadab
Because, you know, I still use it.
-
tomman
fun fact: if you're a JavaServer Faces developer, XHTML _is_ your native doctype :D
-
jonadab
Oh, I don't send as XML, that causes a level of stricture I don't want.
-
jonadab
I send as text/html, IIRC.
-
tomman
(and only old IE complained if you DARED serving that as the proper mimetype)
-
nsITobin
jonadab: what structure.. self closing tags and end tags and a couple of entities?
-
nsITobin
that's the most of it
-
jonadab
If I wanted to send as XML, I'd just use XML, no need for HTML at all in that case.
-
nsITobin
good use xml with xlst to xhtml
-
nsITobin
that is totally acceptable in my book lol
-
jonadab
nsITobin: IIRC, if you send as XML, browsers refuse to apply stylesheets.
-
nsITobin
well xml+xhtml of course
-
jonadab
(Maybe that's been fixed? I haven't tried it recently.)
-
nsITobin
seamonkey.thereisonlyxul.org is sent as xhtml
-
jonadab
nsITobin: Yes, I mean xml+xhtml
-
nsITobin
uses css fine
-
jonadab
I suppose I could try again.
-
jonadab
Though I'm not sure I see the advantage.
-
nsITobin
you will be the very best
-
nsITobin
like no one ever was?
-
jonadab
There's nothing really wrong with text/html as a content-type.
-
jonadab
The doctype says XHTML, of course.
-
nsITobin
jonadab: there could still be some chrome quirks but why not try and see if you can maintain strict markup even if you just send it to html5
-
jonadab
I have no use for HTML5.
-
jonadab
All of the things it adds (like embedding video) are irrelevant to me.
-
nsITobin
xhtml is only processed as xml when the content type is sent otherwise uses html5 parser
-
tomman
nsITobin: IE versions prior to 11 (IIRC) would throw a fit if you sent text/xml+xhtml, every other browser would cope
-
nsITobin
you are using html5.. ANYWAY unless you send as xml+xhtml
-
tomman
but IIRC on Mozilla browsers this came with a interesting side effect: now your tags were case sensitive :D
-
tomman
(this bite me HARD when debugging a weird JS problem with some boring LoB app at $WORKPLACE
-
nsITobin
who mixes caps and noncaps tags or case change their tags normally one sticks with one form
-
jonadab
Case-sensitive and lowercase, I hope? I haven't used uppercase element names since the mid nineties.
-
nsITobin
but best to stick to lower case for forward compatibility to backwards systems
-
tomman
IIRC my case was associating some script to some elements, but turns out the script declarated them as uppercase and in my document they were lowercase
-
jonadab
Though I do *remember* when uppercase element names were conventional, and HTML didn't have version numbers, and ...
-
tomman
so when I flicked the switch from HTML to proper XHTML, suddenly my script broke
-
tomman
(it was some 3rd-party lib)
-
tomman
had to hijack a function and explicitly handle both uppercase and lowercase tags for the desired use csases
-
tomman
IIRC in my case it involved <INPUT>, which in JSF/XHTML would be rendered as <input>
-
jonadab
I don't use third-party libraries to generate HTML. I have my own code for that.
-
tomman
if your mimetype was HTML, then INPUT and input were the same deal for the script, and everything worked out of the box
-
nsITobin
and why is this a good thing?
-
tomman
but on XHTML... your script will never fire because <input> is.. Swiss cheese
-
nsITobin
var BEER and var beer are not the same var in javascript now used to generate code
-
jonadab
I don't use a lot of third-party JS libraries either.
-
tomman
wait, I think I still have a link to that lib
-
tomman
jonadab: I avoid 3rd-party dependencies whenever posible
-
jonadab
Mostly because I don't use heavy javascript. A few bits and pieces, but no core functionality.
-
tomman
and if I absolutely need to bring one, it must be self-contained
-
tomman
and as minimal as possible
-
jonadab
I use third-party libraries on the server side, e.g., Perl libraries from the CPAN.
-
nsITobin
tomman: in mozilla browsers xhtml elements will use the same dom elements as html5 and if it still functioned the old htmlparser would mozilla has never enforced conformance
-
jonadab
DateTime.pm and so on.
-
tomman
oh yay, Giggityhub is completely unusable on SeaMonkey
-
tomman
now I can't find the bug I filed on Mousetrap for that very behavior on XHTML :/
-
nsITobin
yeah webcomponents
-
nsITobin
or some dom telemetry api
-
nsITobin
UXP got some abort updates lately
-
nsITobin
soo
-
tomman
oh, i can still use /issues?q=blah
-
tomman
-
tomman
wow, I reported that 10 years ago
-
tomman
...and never got triaged, even!
-
tomman
(and apparently the lib got abandoned 6 years ago, but still...)
-
nsITobin
yeah
-
tomman
element.tagName will always uppercase... on HTML documents
-
tomman
on XHTML? sorry, you get original case, and XHTML won't generate uppercase or mixedcase, this is not legal .D
-
tomman
:D
-
tomman
(solution for me that had to be deployed into production: hijack a event handler and handle both cases)