incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taner Topal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-468) [weinre] VML rule in CSS causes Weinre to not show style rules
Date Fri, 27 Jul 2012 09:41:33 GMT

    [ https://issues.apache.org/jira/browse/CB-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423768#comment-13423768
] 

Taner Topal commented on CB-468:
--------------------------------

I found a solution. If we escape the colon it works (which it shouldn't). Was hard to find
out because in the Chrome JS Console you have to use "\\\\:"

{code:title=CSSStore.coffee|borderStyle=solid}
_webkitMatchesSelector = (element, selector) ->
  if typeof selector == "string"  
    selector = selector.replace /:/g, "\\:"
  return false unless element.webkitMatchesSelector
  element.webkitMatchesSelector selector
{code}

I will prepare a commit and merge request tomorrow.
                
> [weinre] VML rule in CSS causes Weinre to not show style rules
> --------------------------------------------------------------
>
>                 Key: CB-468
>                 URL: https://issues.apache.org/jira/browse/CB-468
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: weinre
>            Reporter: Patrick Mueller
>            Assignee: Patrick Mueller
>
> from https://groups.google.com/forum/#!topic/weinre/aniuboNVP6k/discussion
> When I use this CSS rule:
> v\:fill { }
> Test page: http://mosney.net/weinre-vml-css.html
> The CSS is valid, but Weinre throws this error in the Server Console:
> 2012-03-22 10:47:58.808:WARN:weinre:target 1285550896: weinre: invocation exception on
WiCSSImpl.getStylesForNode(): Error: SYNTAX_ERR: DOM Exception 12
> Consequently, CSS rules don't show up on the right hand pane of the inspector.
> I've solved this by temporarily commenting out VML style rules but figured I'd log the
issue in case the developer wants to pick it up for a future release.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message