You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by barry kimelman <ba...@outlook.com> on 2014/10/14 17:09:50 UTC

[users@httpd] Problem with HTML datalist tag

Hello,
 
my laptop at the office is windows 7 with internet explorer 10.
 
our apache server is version 2.2.3 running on a Linux system.
 
I have a small HTML test file with a <datalist> tag that works fine when runlocally through the browser.
 
However when I send the file up to the apache server and then attempt to display the web page with the <datalist> tag it does not display correctly. I just see an input box with the contents of the datalist tag choices displayed beside it. I have checked the apache error log and there was no entry of any klind for my web page. Why does the apache web server somehow manage to mess up my simple little web page which is as follows :
 
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE>Datalist</TITLE>
</HEAD>
<BODY>
<H1>Datalist</H1>
<input type="text" name="product" list="productName"/>
<datalist id="productName">
    <option value="Pen">Pen</option>
    <option value="Stapler">Stapler</option>
    <option value="Pencil">Pencil</option>
    <option value="Eraser">Eraser</option>
    <option value="Paper">Paper</option>
</datalist>
</BODY>
</HTML>

 		 	   		  

Re: [users@httpd] Problem with HTML datalist tag

Posted by Stormy <st...@stormy.ca>.
At 03:19 PM 10/15/2014 +0200, Daniel wrote:
>Don't know where you got that idea supposing httpd modifies html pages.
>
>HTTPD does not touch html pages, it's not its function, nor the function 
>or any other web server, httpd sends them to the client when requested and 
>the client interprets them.
>
>It is at least surprising you blame the Apache Web Server over the client 
>in something like this.

and he's using an HTML5 tag <dataset> which is browser sensitive (e.g 
Safari won't touch it...)

--Paul


>I would be inclined to think (but you didn't showed the source of the file 
>you see with the browser when you access it in the server), since your 
>server is in Linux and you are handling the file and testing locally in a 
>windows, that it is a carriage return thing rather than any other. Try 
>dos2unix the file in the server or similar, remember windows and Linux do 
>not use the same characters for newline/carriage returns.
>
>Regards
>
>2014-10-14 17:09 GMT+02:00 barry kimelman 
><<m...@outlook.com>:
>Hello,
>Â
>my laptop at the office is windows 7 with internet explorer 10.
>Â
>our apache server is version 2.2.3 running on a Linux system.
>Â
>I have a small HTML test file with a <datalist> tag that works fine when 
>runlocally through the browser.
>Â
>However when I send the file up to the apache server and then attempt to 
>display the web page with the <datalist> tag it does not display 
>correctly. I just see an input box with the contents of the datalist tag 
>choices displayed beside it. I have checked the apache error log and there 
>was no entry of any klind for my web page. Why does the apache web server 
>somehow manage to mess up my simple little web page which is as follows :
>Â
><!DOCTYPE HTML>
><HTML>
><HEAD>
><TITLE>Datalist</TITLE>
></HEAD>
><BODY>
><H1>Datalist</H1>
><input type="text" name="product" list="productName"/>
><datalist id="productName">
>Â Â Â  <option value="Pen">Pen</option>
>Â Â Â  <option value="Stapler">Stapler</option>
>Â Â Â  <option value="Pencil">Pencil</option>
>Â Â Â  <option value="Eraser">Eraser</option>
>Â Â Â  <option value="Paper">Paper</option>
></datalist>
></BODY>
></HTML>
>

Re: [users@httpd] Problem with HTML datalist tag

Posted by "Ramsey, Robert L" <ro...@uiowa.edu>.
Didn’t say they were, just curious and couldn’t be arsed to google.

From: Daniel <df...@gmail.com>>
Reply-To: "users@httpd.apache.org<ma...@httpd.apache.org>" <us...@httpd.apache.org>>
Date: Wednesday, October 15, 2014 at 9:23 AM
To: "users@httpd.apache.org<ma...@httpd.apache.org>" <us...@httpd.apache.org>>
Subject: Re: [users@httpd] Problem with HTML datalist tag

server side includes are certainly not mentioned, nor in the contents of that "simple html test"

2014-10-15 16:14 GMT+02:00 Ramsey, Robert L <ro...@uiowa.edu>>:
Does httpd parse shtml files or does it hand it off like it hands of php files?  I thought httpd did handle the shtml requests, but it’s been over 10 years since people cared about shtml.  :)


HTTPD does not touch html pages, it's not its function, nor the function or any other web server, httpd sends them to the client when requested and the client interprets them.



Re: [users@httpd] Problem with HTML datalist tag

Posted by Daniel <df...@gmail.com>.
server side includes are certainly not mentioned, nor in the contents of
that "simple html test"

2014-10-15 16:14 GMT+02:00 Ramsey, Robert L <ro...@uiowa.edu>:

>  Does httpd parse shtml files or does it hand it off like it hands of php
> files?  I thought httpd did handle the shtml requests, but it’s been over
> 10 years since people cared about shtml.  :)
>
>
>    HTTPD does not touch html pages, it's not its function, nor the
> function or any other web server, httpd sends them to the client when
> requested and the client interprets them.
>
>

Re: [users@httpd] Problem with HTML datalist tag

Posted by "Ramsey, Robert L" <ro...@uiowa.edu>.
Does httpd parse shtml files or does it hand it off like it hands of php files?  I thought httpd did handle the shtml requests, but it’s been over 10 years since people cared about shtml.  :)


HTTPD does not touch html pages, it's not its function, nor the function or any other web server, httpd sends them to the client when requested and the client interprets them.


Re: [users@httpd] Problem with HTML datalist tag

Posted by Daniel <df...@gmail.com>.
Don't know where you got that idea supposing httpd modifies html pages.

HTTPD does not touch html pages, it's not its function, nor the function or
any other web server, httpd sends them to the client when requested and the
client interprets them.

It is at least surprising you blame the Apache Web Server over the client
in something like this.

I would be inclined to think (but you didn't showed the source of the file
you see with the browser when you access it in the server), since your
server is in Linux and you are handling the file and testing locally in a
windows, that it is a carriage return thing rather than any other. Try
dos2unix the file in the server or similar, remember windows and Linux do
not use the same characters for newline/carriage returns.

Regards

2014-10-14 17:09 GMT+02:00 barry kimelman <ba...@outlook.com>:

> Hello,
>
> my laptop at the office is windows 7 with internet explorer 10.
>
> our apache server is version 2.2.3 running on a Linux system.
>
> I have a small HTML test file with a <datalist> tag that works fine when
> runlocally through the browser.
>
> However when I send the file up to the apache server and then attempt to
> display the web page with the <datalist> tag it does not display correctly.
> I just see an input box with the contents of the datalist tag choices
> displayed beside it. I have checked the apache error log and there was no
> entry of any klind for my web page. Why does the apache web server somehow
> manage to mess up my simple little web page which is as follows :
>
> <!DOCTYPE HTML>
> <HTML>
> <HEAD>
> <TITLE>Datalist</TITLE>
> </HEAD>
> <BODY>
> <H1>Datalist</H1>
> <input type="text" name="product" list="productName"/>
> <datalist id="productName">
>     <option value="Pen">Pen</option>
>     <option value="Stapler">Stapler</option>
>     <option value="Pencil">Pencil</option>
>     <option value="Eraser">Eraser</option>
>     <option value="Paper">Paper</option>
> </datalist>
> </BODY>
> </HTML>
>
>

Re: [users@httpd] Problem with HTML datalist tag

Posted by Jeff Trawick <tr...@gmail.com>.
On Tue, Oct 14, 2014 at 11:09 AM, barry kimelman <ba...@outlook.com>
wrote:

> Hello,
>
> my laptop at the office is windows 7 with internet explorer 10.
>
> our apache server is version 2.2.3 running on a Linux system.
>
> I have a small HTML test file with a <datalist> tag that works fine when
> runlocally through the browser.
>
> However when I send the file up to the apache server and then attempt to
> display the web page with the <datalist> tag it does not display correctly.
> I just see an input box with the contents of the datalist tag choices
> displayed beside it. I have checked the apache error log and there was no
> entry of any klind for my web page. Why does the apache web server somehow
> manage to mess up my simple little web page which is as follows :
>
> <!DOCTYPE HTML>
> <HTML>
> <HEAD>
> <TITLE>Datalist</TITLE>
> </HEAD>
> <BODY>
> <H1>Datalist</H1>
> <input type="text" name="product" list="productName"/>
> <datalist id="productName">
>     <option value="Pen">Pen</option>
>     <option value="Stapler">Stapler</option>
>     <option value="Pencil">Pencil</option>
>     <option value="Eraser">Eraser</option>
>     <option value="Paper">Paper</option>
> </datalist>
> </BODY>
> </HTML>
>
>
If you suspect that it is a web server issue, use browser developer tools
to confirm that the data and content-type of the file is sent as expected.
Presumably it is sent bit for bit the same, but there is a chance that some
metadata is wrong, such as if you are using a non-standard file extension
for the media type or your server is strangely configured.

Otherwise, you could probably get better help from a HTML-related group.

-- 
Born in Roswell... married an alien...
http://emptyhammock.com/