473,796 Members | 2,728 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Theory question: U+000C in HTML 4.01

This question is fairly theoretical (even for me), but it started to
puzzle me:

According to the SGML declaration for HTML 4.01, at
http://www.w3.org/TR/REC-html40/sgml...cl.html#h-20.1
the Form Feed character, U+000C (12 in decimal), is UNUSED, i.e. forbidden:

DESCSET 0 9 UNUSED
9 2 9
11 2 UNUSED

Yet, the prose of the specification discusses it as if it were an
allowed character. Section 9.1 White space says:

"In HTML, only the following characters are defined as white space
characters:

- ASCII space ( )
- ASCII tab (	)
- ASCII form feed ()
- Zero-width space (​)"

( http://www.w3.org/TR/REC-html40/struct/text.html#h-9.1 )

Is this just a slip in the SGML declaration, or in the prose? I'd
suppose the latter, since the formal rule was the same in HTML 3.2,
which did not mention U+000C at all in the prose. So when people wrote
the HTML 4.01 prose, they just didn't check what's in the formal
declaration.

The W3C validator and the WDG validator seem to report U+000C as an
error ("Non-SGML character number 12"), apparently playing by the SGML
declaration for HTML 4.01.

(XHTML, as XML in general, forbids U+000C explicitly. And U+000C is not
useful in HTML: it's just another whitespace character, not a page eject
character, as one might naively expect.)
Oct 27 '05 #1
2 2293
Jukka K. Korpela wrote:
According to the SGML declaration for HTML 4.01, at
http://www.w3.org/TR/REC-html40/sgml...cl.html#h-20.1
the Form Feed character, U+000C (12 in decimal), is UNUSED, i.e.
forbidden:

DESCSET 0 9 UNUSED
9 2 9
11 2 UNUSED

Yet, the prose of the specification discusses it as if it were an
allowed character. Section 9.1 White space says:

"In HTML, only the following characters are defined as white space
characters:

- ASCII space ( )
- ASCII tab (	)
- ASCII form feed ()
- Zero-width space (​)"

( http://www.w3.org/TR/REC-html40/struct/text.html#h-9.1 )

Is this just a slip in the SGML declaration, or in the prose? I'd
suppose the latter, since the formal rule was the same in HTML 3.2,
which did not mention U+000C at all in the prose. So when people wrote
the HTML 4.01 prose, they just didn't check what's in the formal
declaration.


It certainly does not make much sense to allow the form feed in HTML. But it
is rather common to treat it as whitespace in languages where whitespace is
not significant (e.g. C), this seems to be some kind of traditional
convention. The CSS21 spec (I did not check the other CSS versions) does
also include it in its list of ws characters, so there seems to be _some_
consistency across the different specs.

I would bet (but not much money ;) that the authors added the form feed in
order to conform to some tradition, but forgot to think about the SGML
declaration.

And the form feed _could_ be used to manually prepare HTML source code for
printing, so it might be useful for one or two people on this planet.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Oct 28 '05 #2
Jukka K. Korpela wrote:
This question is fairly theoretical (even for me), but it started to
puzzle me:


btw: you are not the first one:
http://lists.w3.org/Archives/Public/...lSep/0131.html
But no one seems to care...

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Oct 28 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3294
by: gene.ellis | last post by:
Good morning. I am racking my brains over what seems like should be a simple question. I have a string that contains text and html. Basically, I would like to grab the HTML tags from the string and wrap some comment tags around it. Does anyone know how I would do this? I was thinking about using the str_replace function, but this won't work for certain html tags, such as <A href=#"> since the "#" won't be known beforehand. Maybe a simple...
0
1373
by: Janis Jekabsons | last post by:
Hi all, Excuse me if this is not the right place to ask this .., but it's the closest I could find. I am reading Ramakrishnan and Gehrke "Database Management Systems". In their errata for the second edition at http://www.cs.wisc.edu/~dbbook/openAccess/secondEdition/dbbook2ed.errata1st.html it says
10
1628
by: Kathy Burke | last post by:
Hi, in trying to discover why my RegisterStartUpScript wouldn't work (I do NOT see it in the HTML source), I looked at the HTML source of a page where I do an XslTransform. First, I get the transform results as expected, beginning with <html> and ending with </html> but then I see the following immediately after that: <HTML> <HEAD>
2
1270
by: YYZ | last post by:
Can anyone tell me why (not accusing .Net, just wondering) if I make a property on a form Public, then inherit from that form, then I can see the property in the form's property window (good), but if I make the property protected, I can't (bad)? I'm trying to see the logic in that...and I haven't found it yet. Matt
3
971
by: Connor T | last post by:
Hi, I wish to generate some relatively simple html reports from my ODBC database. I'm quite happy to write out raw html to a file, but before I do that I just wondered if there is any better solution for creating these reports? I was initially trying to get mailmerged word files working ( After giving up with crystal reports ) , however I have had issues on client's machines
4
1368
by: bbcrock | last post by:
I have some modular code that is written for display purposes. It contains inline CSS code. I originally thought about moving all the inline code to a css file for use throughout the site- one css file with all the site's code. However this would hurt the code's portability throughout multiple sites. Does anyone know of a good article (or does anyone have strong opinions) about how to organize styles in modular code. The code in...
5
3765
by: Tristán White | last post by:
As some of you who helped with my "No input file selected" query earlier already know, I've just started a new job and am new to PHP. All the webpages are PHP, but contain HTML as a string definition. Which is actually nice and easy for me as I am an HTML specialist, but am a complete newbie with PHP. How inadvisable is it though? Here's what I mean:
2
3873
by: robtyketto | last post by:
Greetings, Within my jsp I have HTML code (see below) which accepts input, one of these fields sequence unlike the others is an Integer. <FORM ACTION="wk465682AddFAQ.jsp" METHOD="POST"> Id: <INPUT TYPE=TEXT NAME=Id><BR><BR> Category: <INPUT TYPE=TEXT NAME=category><BR><BR> Question<BR><TEXTAREA NAME=question COLS=100 ROWS=2></TEXTAREA><BR><BR> Answer<BR><TEXTAREA NAME=answer COLS=100 ROWS=4></TEXTAREA><BR><BR> Sequence:...
17
2053
by: mysticwater | last post by:
Hi, I know how annoying these SEO questions can get, but I was hoping someone could quickly answer mine <link removed>: 1)Is a certain way of coding using HTML better in terms of SEO? 2) What exactly is the difference btw XHTML and HTML? is one better than the other in terms of SEO? 3) Online tools say that my site: http://www.rblog.net16.net/ is NOT indexed. But when I type in the URL it appears on google, even though its not the...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10467
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4130
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.