Hi!

Manipulating the DOM is an interesting way of doing this since with xhtml we are moving closer to cleaner xml. However when I view the source of those pages it seems to be a bit of an invalid jumble, eg:

DOM parsing probably is the safest way to modify all ahrefs and formactions. But you are right, there's a bug in the code that makes <html> and <body> appear multiple times:

<html>
<head>
    <title>Form example</title>
<link rel="stylesheet" type="text/css" media="screen" href="/portaltest/public/styles/default.css" />
</head>
<body>
>
> [...]

<td width="100%">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd";>
<html><body><div id="content">

Should be quite easy to clean this up so that <html> and <body> tags of the embedded portlets are removed. Did you refer to that?

As mentioned earlier, my classes are not perfect but rather a concept to implement "complex views" or portals. So I'm really happy about this feedback!

Regards,

Stephan

Reply via email to