Live Expert Chat
(866) 431-6669 (212) 334-3390

Home > Website Development Articles > Reserved ID Values in IE/Win

Reserved ID Values in IE/Win

By Shruti Gupta

September 15, 2005

Have you come across printing error as shown in the screenshot below when trying to print a web page in IE/Win? I did! To view this error, please view this page in IE/Win and then click here and print.

Reserved Id

I had no clue what's causing it. So, I googled and found out the usual cause for this issue is using one of the ID values reserved by IE/Win.

The code causing the problem is as can be viewed here:

<h1 id="tags">This is a Test</ h1>

To resolve the issue, I had to change the word "tags" as can be viewed here:

<h1 id="test">This is a Test</ h1>

"tags" (in lower case and when used as ID value only) seems to be a reserved ID value in IE/Win and hence causes printing error. There are few other reserved ID values that causes some sort of problems in IE/Win. Here, is a list of reserved ID values that I found out here (Please note that I have tested only ID value "tags"):

  • length
  • item
  • namedItem
  • tags
  • urns
  • all

So, if you are facing some weird issues in IE/Win, I suggest making sure that you are not using one of the reserved ID values in the HTML. Hope it helps!

Feedback Form