Jump to content

rv20

Members
  • Posts

    105
  • Joined

  • Last visited

    Never

Everything posted by rv20

  1. If i navigate to http://127.0.0.1 then the directory listing page has a slightly different font formating than if i navigate to http://86.87.89.98 (<<-- example ip--- i.e my external IP) etc .. I think it is just that the fontt is a bit larger for the http://86.87.89.98 but it is very noticable, the font also increases for websites as well for example, http://86.87.89.98/page.html first pic is for 127.0.0.1 then external ip, see the differnce?? i find this pretty strange, its the same directory just a different path to get there....?
  2. What is the point of having both HTML5 and xHTML 2.0, as far as i can see they are both independent but couldn't you merge them in one ?
  3. Is it finished , can browsers use(render) it yet or when will browsers be able too?
  4. I know what tidy does, not really sure what purifier does though it says it's a filter in the docs although i couldn't get i working. After a read of purifier i still don't really know what purifier does different to tidy. Does purfier do what tidy does and more if so is it better or worse do they both just do different things? Will i be fine with tidy? thanks for any help.
  5. I was trying the php tidy extension/classes, so i tried a couple of sources of html with set missing tags and it worked well, replaced the missing tags, but one example i tried with two missing closing tags, a missing </title> closing and a missing </b> closing tag, it totally messed up the replacement of the missing closing </title> tag placing it under the body tag. Here is the source html i feed in, <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title> <body> <b>hello </body> </html> here is the result of php tidy, <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title> <body> <b>hello</b> </body> </title> </head> </html> here is the php code i used for this, <?php include "vars.php"; $html = open_html_file_for_reading("val.html"); $config = array( 'indent' => true, 'output-xml' => true, 'input-xml' => true, 'wrap' => '1000'); // Tidy $tidy = new tidy(); $tidy->parseString($html, $config, 'utf8'); $tidy->cleanRepair(); echo tidy_get_output($tidy); ?> any help would be great, it might be something to do with mixing standards in html and xhtml , strict , translational and frameset, or maybe the <b> is depreciated and it is getting confused, but as i said so far it only seems to mess things up if the</title> is missing..... any ideas? MAybe my config options $config = array( 'indent' => true, 'output-xml' => true, 'input-xml' => true, 'wrap' => '1000'); just need to be tweaked??
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.