News for hackers. Stuff that matters.

_micheee

I just found out you may - even in current HTML use entity references in attribute values, it’s just you don’t have to anymore, when the ampersand is not ambiguous.

The spec states it as: “Attribute values are a mixture of text and character references, except with the additional restriction that the text cannot contain an ambiguous ampersand.”

Whereas in the the days before HTML5 this has been mandatory.

> HTML 4.01 Specification – Appendix B.2.2 “Ampersands in URI attribute values”

https://www.w3.org/TR/html401/appendix/notes.html#h-B.2.2

> Unfortunately, the use of the “&” character to separate form fields interacts with its use in SGML attribute values to delimit character entity references.

Seems Like the recommendation changed from supporting ; and & to only using &.

Thinking about it, it is a little surprising as, if I remember correctly, in HTML source you should encode & as & right?

Re:The lost art of XML on Friday January 23, 2026 @12:21PM (#46735077)
We do XML processing, albeit with XQuery, as a small business.

It is a very niche solution but actually very stable and quite handy for all kinds of data handling; web-based applications and APIs as it nicely integrates with all kinds of text-based formats such as JSON, CSV or XML.

Yet I can easily comprehend how people get lost in all kinds of standards, meta-standards, DTDs, schemas, namespaces, and modeling the whole enterprise in SOAP.

However, you can do simple things simply and small, but in my experience, most tools promised to solve problems with ever-layered complexities.

Little disclaimer, I am probably biased, as I am with BaseX, an open-source XQuery processor :-)

Re:XMLUI on Sunday July 20, 2025 @04:35PM (#44629073)
This reminds me of XForms and its fully declarative approach. It allowed you to add interactivity to your HTML without writing code.
Re:Xee: A Modern XPath and XSLT Engine in Rust on Saturday March 29, 2025 @02:10AM (#43513192)
We also use BaseX to write restful backends with RestXQ - https://docs.basex.org/12/RESTXQ - the documentation itself is written in XQuery as well and uses a BaseX database as a source.
> Thank you for signing up for the Postbox Beta. We'll be sure to let you know when the Beta is ready.

Man, I’m getting old: just searched my mail and found this mail from… January 26 2009 :-)

I liked it, but it always felt like it “only” added some quality of life functions to Thunderbird.

Not only software but also infrastructure & protocols: N.T.P.: — https://www.newyorker.com/tech/annals-of-technology/the-thor...

I found it quite a good read!

The built-in unbound dns server has support for blocklists, maybe you want to give it a try: https://docs.opnsense.org/manual/unbound.html
Re:Google AMP – The Newest of Evasive Phishing Tactic on Thursday August 03, 2023 @07:11AM (#36984149)
Why so rude?
Re:XCheck at Meta: Why it exists and how it works on Sunday October 16, 2022 @12:45PM (#33225039)
Why?
I really enjoy watching his videos, if only just for pure entertainment.

I never really touched processing or p5js, still I like the way Daniel introduces and teaches core programming concepts. Seems to be a great guy!

Even a 5-6 month old must feel pretty unloved. Just put yourself in their position: can't walk, can't talk, can't get out of bed, feels tired, feels all alone, cries for help and comfort but is ultimately ignored.

That's the most worst message you can send out to a person of any age.

I often hear people say: but they learn, they manipulate you as if a baby’s personality was naturally hostile and their main reason in life was betraying their parents. :)

Re:Rocky Linux 9.0 on Thursday July 14, 2022 @03:18PM (#32100374)
In case you don't intend distrohopping you use this for being "an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®."

So its actually for people trying to replace CentOS which RedHat decided to drop :)

Re:A Fun List of Browsers on Sunday July 25, 2021 @01:44PM (#27951258)
Thought of it yesterday! I used it in the mid 90s when I gave about every software I could find a chance. I only remember it being awfully slow, but I did not care to much as our families 28.8 modem was slow as well :)