Kornel Lesiński <kor...@...> writes:

> 
> On 19.07.2009, at 18:52, Jacek Karczmarczyk wrote:
> 
> > Hi there,
> > I've just tried tal 1.2 in my app and it shows me the error  
> > "Unsupported
> > attribute 'rel'" in line:
> >
> > <link rel=stylesheet ...>
> >
> > Two questions:
> > - I assume this is a bug and will be fixed, right?
> 
> PHPTAL shouldn't reject any attributes. Are you sure you're getting  
> this error from PHPTAL? Can you quote error in full with reference to  
> file/line that throws it?

The exception is:

PHPTAL_ParserException Object
(
    [srcFile] => ...path/views/layouts/default.html
    [srcLine] => 5
    [message:protected] => Unsupported attribute 'rel'
    [string:private] => 
    [code:protected] => 0
    [file:protected] => ...path/views/layouts/default.html
    [line:protected] => 5
    [trace:private] => Array
        (
            [0] => Array
                (
                    [file] => ...path/phptal-1.2/PHPTAL/Dom/SaxXmlParser.php
                    [line] => 206
                    [function] => onElementStart
                    [class] => PHPTAL_Dom_DocumentBuilder
                    [type] => ->
                    [args] => Array
                        (
                            [0] => link
                            [1] => Array
                                (
                                    [rel] => stylesheet
                                    [type] => text/css
                                    [href] => /css/drukcd.css?${php:
filemtime('css/drukcd.css')}
                                )

                        )

                )
...


And the template is:

<html>
<head>
<title>${translate: title} | ${setup/application/name}</title>
<meta tal:condition="exists: html/meta" tal:repeat="item html/meta"
tal:attributes="http-equiv item/name; content item/value" />
<link rel="stylesheet" type="text/css" href="/css/drukcd.css?${php:
filemtime('css/drukcd.css')}" />
...

 
> In HTML5 only <td data-myattr=""> is allowed (but PHPTAL doesn't  
> enforce this).

Good to know, thanks

regards
jk



_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to