[pmwiki-users] Html5Extensions not working with php5.5

Chuck Goldstein cgpmw13 at codingmaniac.com
Fri Apr 24 21:36:47 CDT 2015


In function HTML5Block, try replacing:

   $attr = preg_replace("/^\\s*([\\w]+)\\s?/","id='$1'",$attr);

with:

   $attr = preg_replace("/^\\s*([\\w]+)(\\s|$)/","id='$1'$2",$attr);


Chuck G.


On Thu, 23 Apr 2015 10:55:52 -0500, ABClf <languefrancaise at gmail.com>  
wrote:

> Indeed, nice, no more warning related to php5.5 ;
> yet I see a probably issue in this recipe (or my mistake ?) :
>
> Native PmWiki markup (:div:) accepts a "spaced name class"
>
> (:div class="nav nav-stacked":)
> *[[link]]
> (:divend:)
>
> Whereas this doesn't :
>
> (:nav class="nav nav-stacked":)
> *[[link]]
> (:navend:)
>
> I may be wrong, but I suspect this is not the expected behavior : nav
> should accept same class, even "spaced name" as div does.
>
> See html for (:div:) followed b (:nav:) (both using same class="nav
> nav-stacked") :
>
> <div id='wikitext'>
> <div class='nav nav-stacked' >
> <ul><li><a class='createlinktext' rel='nofollow'
>     href='http://localhost/quinze3/pmwiki.php?n=Test.Link?action=edit'>link</a><a
> rel='nofollow'
>     class='createlink' href='
> http://localhost/quinze3/pmwiki.php?n=Test.Link?action=edit'>?</a>
> </li></ul></div>
> <div class='vspace'></div>
> <nav id='class' >
> <ul><li><a class='createlinktext' rel='nofollow'
>     href='http://localhost/quinze3/pmwiki.php?n=Test.Link?action=edit'>link</a><a
> rel='nofollow'
>     class='createlink' href='
> http://localhost/quinze3/pmwiki.php?n=Test.Link?action=edit'>?</a>
> </li></ul>
> </nav><!-- nav end -->
> </div>
>
> Gilles.
>
>
> 2015-04-23 10:34 GMT+02:00 Petko Yotov <5ko at 5ko.fr>:
>
>> Should work now.
>>
>> Petko
>>
>> On 2015-04-23 02:50, ABClf wrote:
>>
>>> would someone have time and knowledge and interest to make the
>>> http://www.pmwiki.org/wiki/Cookbook/HTML5Extensions
>>> tiny script compatible with php 5.5 ?
>>>
>>
>>
>> _______________________________________________
>> pmwiki-users mailing list
>> pmwiki-users at pmichaud.com
>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>>


-- 
Using Opera's mail client: http://www.opera.com/mail/




More information about the pmwiki-users mailing list