Hacker News new | past | comments | ask | show | jobs | submit | thedumbname's comments login

> Void elements only have a start tag; end tags must not be specified for void elements

So?


The "<div/>" syntax is short for "<div></div>" in XHTML lingo.

In HTML void tags only have a start tag and don't close at all.

    <meta foo bar>
    <img bar baz>
And so forth. There's a hardcoded list of void tags in HTML.

Horribly dumb design idea if you ask me, but it is what it is.


These two things have nothing to do with each other though:

- HTML doesn't have XML-style empty elements such as in "<div/>" and simply ignores the slash, treating the construct as start-element tag

- HTML is "hardcoded" in that the vocabulary understood by the browser is determined out of band, whether for empty ("void") elements or not. An SGML DTD (like the W3C HTML 4.01 DTD or newer DTDs for HTML 5+, which would be the means to inform a parser about the parsing rules for a markup language dynamically), actually contains declarations for the meta, img, and other elements as having EMPTY content, along with tag inference and attribute shortform rules also necessary for parsing.


OK, so it should not warn with XHTML doctype? But it does too

It's mentioned in the GitHub readme, SuperHTML only supports HTML5 regardless of what you put in the doctype.

I will probably keep tracking the WHATWG living spec and never implement any other spec (old HTML versions, XHTML), so if you have a keen interest in anything other than contemporary HTML, SuperHTML might not be the right tool for the job.

That said, I'll add a warning if you put something else in the doctype so that users can know what to expect.


I got this error first with HTML doctype, so it is a problem in my code which uses self-closing tags with HTML doctype. Instead of very noninformative "html_elements_cant_self_close" message it should explain that HTML spec does not have "self-closing tags", and this code uses deprecated feature from previous (XHTML) specs.

You're getting a very clear error: your sample is not valid HTML, because, as the error informs you, HTML elements can't self close. Why would it reference some other document type for which this may or may not be valid syntax? Should it also tell you that these are not valid JSON objects or LISP forms?

Now, separately from that, it might be nice if it told you that it doesn't support DOCTYPE == XHTML and will treat the document as HTML anyway, but that should only appear as an error/warning on the DOCTYPE line, it shouldn't confusingly mention XHTML wherever you might have meant some XHTML-ism that is invalid HTML.

Also, XHTML is not "an older version of HTML", it is a completely different standard that is (or was) sometimes used instead of HTML.


"html_elements_cant_self_close" is not a very clear error. Yes, now it is clear what does it mean, and it would be great if other users should not start a new HN-discussion to receive clear explanations when it can be explained directly on "html_elements_cant_self_close" tooltip. We can polish text, decide to mention XHTML or not, but the error message should be more informative.

Its valid HTML, but

> On void elements, it does not mark the start tag as self-closing but instead is unnecessary and has no effect of any kind. For such void elements, it should be used only with caution — especially since, if directly preceded by an unquoted attribute value, it becomes part of the attribute value rather than being discarded by the parser.


It show me white screen, is it expected?


Totally forgot that X is blocked in my country, but app does not aware and does not display any connection errors


Pakistan?


They not yet discovered Site Defaults and config.site


RedHat one is buggy and slow, but it works after tinkering and display a lot of warnings and code suggestions. This extension loads instantly without any issues but it show 0 warnings/errors in my project. "Find all references" works as expected.


Use Makefile if you want to make your cross-platform build environment Linux only. You will have all kind of issues on Windows, Mac, *BSD, you name it.


You can resolve the differences between BSD and GNU make.

Not sure about Windows. I'd expect that WSL bundles GNU make, no?


Make is in POSIX, so stick to POSIX features and your Makefile is portable across all reasonable systems. For Windows, I guess you use a .bat file.


Is that more of an issue if you shell-out a lot in your Makefile? (I don't use mac or win)


Is it expected to work in the real world? I don't think so

% bun test bun test v0.5.7 (5929daee)

17 | expect([...] ^ error: Not implemented

error: Unexpected ? ?PNG ^ [...]/a.png:1:1 0

zsh: segmentation fault bun test


Sorry about this

It looks like some code is importing a .png file and then some other issue (likely related to that) is causing a crash in the test runner

Can you file an issue on https://github.com/oven-sh/bun/issues/new?assignees=&labels=... with sample code reproducing it? Happy to take a look


Tell him VSCode have developer console to eval in each "buffer"


Did you miss popup window which connected to Apple with green status bar?


I didn't miss anything, it just feels like a phishing attempt. No offense if it's not but perhaps you should just put the source upfront rather than hosting a service. People have their whole lives connected to iTunes accounts.


I didn't share it here, but it's my application. The source code is available at https://github.com/zachomedia/apple-music-webplayer


It's a fair point though. Apple ( and Amazon, Facebook etc ) should really provide a way to manage sub-accounts with limited capabilities.


They are. And you see which capabilites are provided to the requster application on that account page


> I get lost in an endless sea of RFCs with no idea of which are important for my use-case (most RFC titles seem fairly jargon-heavy to me).

Exactly my feeling when I trying to read ActivityPub and other "federated social network" specs


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: