How to specify a tag containing a colon (:) and namespace with Nokogiri's css selector

To specify a tag with colons : and namespace in Nokogiri's CSS selector, convert the colon : to a pipe |.

doc.css("namespace|tag")

Recommended Posts

How to specify a tag containing a colon (:) and namespace with Nokogiri's css selector
How to create a server executable JAR and WAR with Spring gradle
How to make an app with a plugin mechanism [C # and Java]
How to build API with GraphQL and Rails
[Rails] [Docker] Copy and paste is OK! How to build a Rails development environment with Docker
[Docker] How to update using a container on Heroku and how to deal with Migrate Error
How to quit Docker for Mac and build a Docker development environment with Ubuntu + Vagrant
How to make a factory with a model with polymorphic association
[How to insert a video in haml with Rails]
How to serialize and deserialize LocalDateTime type with GSON
[Rails 6] How to set a background image in Rails [CSS]
How to use RealSense with ubuntu 20.04 and ROS Noetic
How to install Gradle and Kotlin with SDKMAN (Mac)
Common problems with WSL and how to deal with them
How to get started with creating a Rails app
[Java] How to start a new line with StringBuilder
How to specify character code and line feed code in JAXB
How to divide a two-dimensional array into four with ruby
How to use a foreign key with FactoryBot ~ Another solution
I want to make a list with kotlin and java!
How to transform ARKit and SceneKit shapes with Metal shader
I want to make a function with kotlin and java!
Learning Ruby with AtCoder 13 How to make a two-dimensional array
How to test a private method with RSpec for yourself
How to specify db when creating an app with rails
How to move another class with a button action of another class.
Build a Node-RED environment with Docker to move and understand
Mapping to a class with a value object in How to MyBatis
How to develop and register a Sota app in Java
How to join a table without using DBFlute and sql
How to set up a proxy with authentication in Feign
How to create and launch a Dockerfile for Payara Micro
How to register as a customer with Square using Tomcat
How to deal with different versions of rbenv and Ruby